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

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -