Why I am not getting Row value on click using this?
Posted
by rockers
on Stack Overflow
See other posts from Stack Overflow
or by rockers
Published on 2010-06-13T02:21:04Z
Indexed on
2010/06/13
2:22 UTC
Read the original article
Hit count: 233
jQuery
$("#grid td:first-child").click(function() {
var value = $(this).closest('tr').find('td:eq(2)').text(); // for third column
alert(value);
var value = $(this).closest('tr').find('td:eq(3)').text(); // for fourth column
alert(value);
var AccountName = accountid;
var x = function() {
$(this).click($("#showregiongrid").load('/analyst/ror/regionspeexc/?a=' + AccountName));
}
clickTimer = window.setTimeout(x, 300);
});
Why i am not getting the row values of eq(2) and eq(3)..
is there anyting I am doing wrong?
if I delete td:first-child from my click event I am getting null vallues on popup?
thanks
© Stack Overflow or respective owner