View Full Version : Retain select box values
I would like to retain selected values of select boxes after a formsubmit when some fields aren't filled in correctly and error messages are displayed.
How should I handle this?
Thanks
Marco van Herwaarden
05-18-2005, 06:59 PM
Sorry but i don't really understand your question. Could you please try to explain more what you are trying to do.
When I select the third option from a dropdown box, and then submit the form, the form will be redisplayed if not all fields were entered correctly, for example, name field is a required field.
Now, normal input type=text fields retain their value, however, dropdown boxes don't. i want the dropdown box to still show the value I selected before I submitted the page.
Thanks
Marco van Herwaarden
05-19-2005, 08:35 AM
What is the code you use to display the dropdown?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.