Link to home
Create AccountLog in
Avatar of supportoranges
supportorangesFlag for United States of America

asked on

JQuery basic question

$("[name=willywonkacandybars]").change(function(){
    blah blah
  }

Refer to the above code. It is for a drop down box (the 'SELECT' html element).
Blah blah works great but now I want blah blah to execute when same element is clicked.

Please help me write the stub to call this handler.   It should be something like
 $("[name=willywonkacandybars]").click(function(){
    ("[name=willywonkacandybars]").change()
 }

i really don't want to be on it all day. thx.
SOLUTION
Avatar of Jon Norman
Jon Norman
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
ASKER CERTIFIED SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Avatar of supportoranges

ASKER

well, the first fellow was first but the second fellow taught me something I didn't know so points to all. thank you!