I want to pass the object of being clicked into the handler. like this:
$selector.delegate('.test','click',func1( ?? ));
//this is a reusable function
function func1(obj){
//do something with obj .....
}
so in this case, I should pass $(‘.test’) into the function. can anybody give me a hand here, thanks a lot.
Use
$(this)insidefunc1.thiswill be the object on which the event occurred.