Hi all,
I am using an ajax (with PHP) based drop down menu in which each of the list values of drop down menu depends on the selection of the previous menu.
Something like: Country -> City – >District.
My problem is in validation. If i made my selection from country up to District and submitted the form, and incase i encountered with an error in inserting to the DB, then i click back button, the values of the selected city & district will be gone (reset). I tried even to store the values in a session variable, it will still show the selected values in the list, but the JS validation will still ask me to select city & District. But, country field is OK because it is not dependant on other field. My Question, is how to keep the values of the selected fields (city & district) set, so that the user will not have to make the selection again starting from country – district.
I hope you got i what mean.
Thanks in advance.
M