Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Set a combobox value with js

Reply
Thread Tools

Set a combobox value with js

 
 
John M
Guest
Posts: n/a
 
      10-19-2003
How is it possible to change a select box value with Javascript?


 
Reply With Quote
 
 
 
 
Janwillem Borleffs
Guest
Posts: n/a
 
      10-19-2003

"John M" <(E-Mail Removed)> schreef in bericht
news:20ykb.23632$(E-Mail Removed)...
> How is it possible to change a select box value with Javascript?
>
>


Yeah, with:

document.forms['formNameOrIndex'].elements['selectNameOrElementIndex'].optio
ns[index].value
= newValue;


JW



 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Combobox Project: How to put 4 text items in the combobox christopher.m.lusardi@gmail.com Java 5 10-11-2012 09:29 PM
ComboBox Text and Value Jl_G_0 ASP .Net 1 10-21-2006 02:46 AM
changing font for text displayed from combobox value? 2ontheway HTML 1 07-25-2006 11:09 PM
null value in combobox Vaidas Gudas ASP .Net 1 03-15-2006 01:26 PM
How to dynamically show the HTML based on combobox selected value Mullin HTML 0 03-08-2005 06:45 AM



Advertisments