View Full Version : Retaining Value!

09-15-2005, 08:10 PM
Selecting an option from a drop-down list automatically submits the page to itself using the onChange event & populates a textbox with the option selected. Though the textbox gets populated with the selected option, it disappears when the Form gets submitted. How do I make the textbox retain the value of the selected option?

For e.g if a user selects, say, "Cat" from the drop-down, the textbox value immediately changes to Cat but when the page gets submitted, the textbox becomes empty. How do I make the textbox value retain the value "Cat"?



09-16-2005, 05:34 AM
What server-side language you are using? You can easily do that on the server-side.