jquery delegate passing variable -
jquery delegate passing variable -
i want pass object of beingness clicked handler. this:
$selector.delegate('.test','click',func1( ?? )); //this reusable function function func1(obj){ //do obj ..... }
so in case, should pass $('.test') function. can give me hand here, lot.
use $(this)
within func1
. this
object on event occurred.
jquery delegates
Comments
Post a Comment