Hello, I have an address form which has a select box with countries and another select box with provinces.
When I select a certain country I cause a postback by using javascript __doPostBack function. I also have a submit button.
It works perfectly in both firefox and IE when I click on selectbox and select a country - it posts back and then on page load I populate the provinces based on the country just selected.
- EXCEPT: when I click on the select in IE, then select a country BUT I don't click on it, I hit enter to select that country.
This causes IE to actually submit the form as if I had clicked the submit button, which is NOT what I want.
Now if i change the type of the button to "button" instead of "submit", it doesn't behave that way, but then the user can't submit by hitting Enter.
I'm sure someone has come across this problem.
Is there a workaround for this?
Any idea on how to fix this?
When I select a certain country I cause a postback by using javascript __doPostBack function. I also have a submit button.
It works perfectly in both firefox and IE when I click on selectbox and select a country - it posts back and then on page load I populate the provinces based on the country just selected.
- EXCEPT: when I click on the select in IE, then select a country BUT I don't click on it, I hit enter to select that country.
This causes IE to actually submit the form as if I had clicked the submit button, which is NOT what I want.
Now if i change the type of the button to "button" instead of "submit", it doesn't behave that way, but then the user can't submit by hitting Enter.
I'm sure someone has come across this problem.
Is there a workaround for this?
Any idea on how to fix this?
Comment