I have a form which has a single html
ption which has all the countries displayed from the database. On selection of the country i have to either display the states / cities depending on the selection.
So the countries are now displayed. Now i wrote an onchange to recognize what is the value of the changed country and then i submit the form to a new action which will fetch either the states/cities depending on my country. I just have one question here. My html:form itself has an onsubmit event that submits to another action .
[code]
<html:form focus="firstName" onsubmit="return validateAll(this)" method="post" action="/register" name="registerForm" type="com.zerodegrees.struts.forms.auth.RegisterFormBean">
What will happen when i submit the form for the onchange of the option ?