HighDots Forums  

retain selected option on submit

JavaScript discussion (multi-lingual) JavaScript discussion (alt.comp.lang.javascript)


Discuss retain selected option on submit in the JavaScript discussion (multi-lingual) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ross
 
Posts: n/a

Default retain selected option on submit - 09-20-2005 , 09:57 AM






I have the following select box...


<select name="table_name" id="table_name">
<option value="1" selected>Please Select</option>
<option value="news">News</option>
<option value="events">Events</option>
<option value="publications">Publications</option>
</select></td>

how do I rememeber the selected option whne the form is submitted so it does
not reset the value.

Ross.



--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access

Reply With Quote
  #2  
Old   
Jasen Betts
 
Posts: n/a

Default Re: retain selected option on submit - 10-15-2005 , 08:09 PM






On 2005-09-20, Ross <ross (AT) aztechost (DOT) com> wrote:
Quote:
I have the following select box...


select name="table_name" id="table_name"
option value="1" selected>Please Select</option
option value="news">News</option
option value="events">Events</option
option value="publications">Publications</option
/select></td

how do I rememeber the selected option whne the form is submitted so it does
not reset the value.
when the form is submitted the browser "forgets" everything including the
contents of the page.

you will have to send that information to your server...

Bye.
Jasen


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.