$("#table_id").click(function(e) {
var row = jQuery(e.target || e.srcElement).parent();
$("#table_id").bind('click', loaddata);
name= row.attr("id");
});
loaddata is the funcation I am calling on click on each row.
But this click event is working for double click. I mean when you double click its working fyn.
But i need it to work for single click on the row.
Is that anything I am doing wrong here?
change
to
Also, it looks a bit weird in the fact inside the $(“table_id”) click, you are binding a function to the click.
Are you meaning to do the following?