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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple selection javascript

Status
Not open for further replies.

ebarratt

Programmer
Apr 10, 2002
53
US
Hey all,

I currently have multiple options being saved to a db and I want them to be highlighted when i load the values in.

Currently i'm using javascript to populate the listbox with values and was wondering if anyone knew the syntax to get the options highlighted in javascript.

something like

listbox.options[x].selected ?

or will listbox.selectedIndex = x

work for each value that x stores in the loop?


Any help would be appreciated thanks all.
Errol Barratt
work: 856-810-5712
home: 856-697-1593
*** If there is a possibility, I'm sure all the smart ones out there will enlighten me 8p
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top