somsahi
09-21-2006, 09:51 PM
<script language="javascript">
function submitF()
{
document.facilityForm.submit();
}
</script>
<html:form action="/iata">
Facility: <html:select property="facility"
name="facilityForm" size="1" onchange="submitF()">
<html:option value="state">state</html:option>
<html:options property="facilityList"
name="facilityForm" />
</html:select>
Hi I have a form conatining values which is submitting
though above script.
Now I have put a default value as "state"
when user select any other value excpet default then
corrosponding page is displayed but if user choose default
value there is error obviously.
I simply want that if user select default value "state"
nothing should be submitted.
please be specific if anyhting need to be chnaged in
javascript as no idea about javascript
regards
function submitF()
{
document.facilityForm.submit();
}
</script>
<html:form action="/iata">
Facility: <html:select property="facility"
name="facilityForm" size="1" onchange="submitF()">
<html:option value="state">state</html:option>
<html:options property="facilityList"
name="facilityForm" />
</html:select>
Hi I have a form conatining values which is submitting
though above script.
Now I have put a default value as "state"
when user select any other value excpet default then
corrosponding page is displayed but if user choose default
value there is error obviously.
I simply want that if user select default value "state"
nothing should be submitted.
please be specific if anyhting need to be chnaged in
javascript as no idea about javascript
regards