SRL Archive - Web Development

Getting the value from a select object with javascript.


R0b0t1

2007-08-17 17:40:30

So tell me… how is it done?


I've read many a tutorial. Don't give me noob points :).

Sp0rky

2007-08-17 17:59:55

+ noob points! lol, nah im jking.

This help at all?

http://www.javascriptkit.com/jsref/select.shtml

R0b0t1

2007-08-17 19:43:32

Yes, thanks Sp0rk-eh.

I thought you could get the value like in scar (combobox1.text) but you have to know the number of the item in JS.

cathering_

2007-08-18 23:05:41

W3 Schools have a HOLE reference of HTML DOM

R0b0t1

2007-08-19 14:42:36

Yep, and I didn't find it there.