It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

value submission through script

value submission through script

Postby somsahi on Thu Sep 21, 2006 8:49 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
somsahi
 
Posts: 8
Joined: Tue Aug 22, 2006 5:42 pm

Who is online

Users browsing this forum: No registered users and 4 guests