...

View Full Version : submit problem



somsahi
09-21-2006, 10: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

rmedek
09-23-2006, 01:33 PM
Do not crosspost. (http://codingforums.com/rules.htm)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum