¡@

Home 

2014/10/16 ¤W¤È 12:01:50

jquery Programming Glossary: add_event

jquery .click pass parameters to user function

http://stackoverflow.com/questions/3273350/jquery-click-pass-parameters-to-user-function

with parameters using jquery .click but I can't get it to work. This is how I want it to work '.leadtoscore' .click add_event 'shot' which calls function add_event event blah blah blah It works if I don't use parameters like this '.leadtoscore' .click.. but I can't get it to work. This is how I want it to work '.leadtoscore' .click add_event 'shot' which calls function add_event event blah blah blah It works if I don't use parameters like this '.leadtoscore' .click add_event function add_event blah.. which calls function add_event event blah blah blah It works if I don't use parameters like this '.leadtoscore' .click add_event function add_event blah blah blah But I need to be able to pass a parameter through to my add_event function. Has somebody..