I want to pass few parameters to Click() event in jquery, I tried following but its 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);
});
Please help!