¡@

Home 

2014/10/16 ¤W¤È 12:03:09

jquery Programming Glossary: elementclicked

jQuery: How do you pass $(this) as function parameter?

http://stackoverflow.com/questions/2316158/jquery-how-do-you-pass-this-as-function-parameter

'clicked' into something like this '#myElement' .click ElementClicked this function ElementClicked .addCss 'clicked' Thanks jquery.. like this '#myElement' .click ElementClicked this function ElementClicked .addCss 'clicked' Thanks jquery share improve this question.. this question This won't work '#myElement' .click ElementClicked this This is executing the function ElementClicked with whatever..

jQuery: How do you pass $(this) as function parameter?

http://stackoverflow.com/questions/2316158/jquery-how-do-you-pass-this-as-function-parameter

how can I turn this '#myElement' .click function this .addCss 'clicked' into something like this '#myElement' .click ElementClicked this function ElementClicked .addCss 'clicked' Thanks jquery share improve this question This won't work '#myElement'.. .click function this .addCss 'clicked' into something like this '#myElement' .click ElementClicked this function ElementClicked .addCss 'clicked' Thanks jquery share improve this question This won't work '#myElement' .click ElementClicked this.. ElementClicked .addCss 'clicked' Thanks jquery share improve this question This won't work '#myElement' .click ElementClicked this This is executing the function ElementClicked with whatever this is at the time of writing and binds the return value..