Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to send SelectedIndex to Cookie's value?

Status
Not open for further replies.

passs

Programmer
Dec 29, 2003
170
RU
Hello guys!

Can someone tell me how to send selectedIndex (<select><option>...) to cookies value?

Will be very thankful for help!

Bets regards!
Alexander
 
have a look at the other post for how to set cookie

here is how you retrieve the value



setCookie(&quot;mySelect&quot;,document.getElementById(&quot;selectName&quot;).value, &quot;01/01/2007&quot;)
 
document.cookie = &quot;YourSelectedIndex=&quot;
+ document.YourForm.YourSelect.selectedIndex;

-- taf
 
yes, guys, thank you all!
i've already found a solution!

But i'm very thankful to you for the answeres anyway!

Best regards,
Alex
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top