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

Select onClick 1

Status
Not open for further replies.

cohans

Programmer
Aug 21, 2001
35
US
Is there any way I can trap a mouse click within a select tag? I want to to go do something when the user selects an item in the list. All I see is the onFocus event, which I don't think will get me there. Thanks.
 
There is also onChange, which is usually used for this situation. Insert a dummy option at the top, so it is always fired. You know, put 'select' or something.
 
Thanks, Bangars. It was late and I discovered the onChange shortly after posting. Works like a charm.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top