How do I do this SELECT/OPTION in HTML? (javascript)
Posted
by alex
on Stack Overflow
See other posts from Stack Overflow
or by alex
Published on 2010-03-17T22:27:56Z
Indexed on
2010/03/17
22:31 UTC
Read the original article
Hit count: 133
Suppose I have this:
<select id="myselect">
<option rel="a">1</option>
<option rel="b">2</option>
<select>
How do I use JQuery so that onchange $("#myselect")
, I alert the "rel" part of the option (not 1 or 2)
© Stack Overflow or respective owner