Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Sep 2002
    Posts
    60
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Retaining Value!

    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"?

    Thanks,

    Arpan

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,032
    Thanks
    0
    Thanked 248 Times in 245 Posts
    What server-side language you are using? You can easily do that on the server-side.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •