jquery click event not working on first click,
Posted
by kumar
on Stack Overflow
See other posts from Stack Overflow
or by kumar
Published on 2010-04-08T18:03:13Z
Indexed on
2010/04/08
18:13 UTC
Read the original article
Hit count: 181
jQuery
$("#table").click(function(e) {
var row = jQuery(e.target || e.srcElement).parent();
$('#tabletr').bind('click', show);
name= row.att("id");
});
I am not getting the id value very first time i click on the row? second time I am getting fine? can anyone tell me why its happening like this?
© Stack Overflow or respective owner