I want to pass few parameters to click()
event in jQuery, I tried following but it's not working:
commentbtn.click(function(id, name){
alert(id);
});
And also if we use bind then how we'll do that:
commentbtn.bind('click', function(id, name){
alert(id);
});
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…