mercredi 25 février 2015

Retain dynamically created DropDown list's selected value on event window.history.back()- JavaScript

Can use the below question as a reference to explain the context: Populate one dropdown based on selection in another


On my page; after selecting the proper values from the dropdown lists and filling up a few text fields, the user submits the form.


The next page is for the confirmation, that asks the user whether he/she wants to edit the form.The edit button just takes back the user to the previous page (window.history.back()).


Now the problem is, every field on the page has retained the value that was filled by the user. Except the second dropdown list (dependent dropdown list).


Is there a way to fix this?


Aucun commentaire:

Enregistrer un commentaire