문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top