Question

I've a form which contains three related selections (properties are zeroselect, firstselect, secondselect). When the user chooses a value from the firstselect, the second select is populated like it's described here and in the corresponding answer.

The issue is that when the form is submitted and there is an error or when the form is submitted, another page is displayed and the user clicks on the back button, IE doesn't display the user chosen value for the second select (Firefox and Chrome do).

All the other properties are set properly.

EDIT

In case of error, I resolved via jquery.

Était-ce utile?

La solution

I resolved via jquery by setting an hidden field value if the browser is IE.

Then the first thing I do in $(function(){}); is set a var with the value of the hidden field if browser is IE else with the value of the property for the select.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top