[thelist] Javascript - detecting which SELECT!
jeff
jeff at members.evolt.org
Tue Dec 5 04:31:59 CST 2000
steve,
:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: From: Steve Cook
:
: After reading 3 JavaScript tutorials, I'm most
: of the way there, but I'm stuck on trying to
: detect which select I have clicked on!
:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
how about the keyword "this"
:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: onChange="leapTo(window.document.theForm.how.options[selectedIndex])"
:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
how about this?
onChange="leapTo(this[this.selectedIndex].value)"
i'm assuming that the value attribute holds the value you wish to pass in
the query string.
good luck,
.jeff
name://jeff.howden
game://web.development
http://www.evolt.org/
mailto:jeff at members.evolt.org
More information about the thelist
mailing list