javascript - How to get second column value of invoked row in table? -
in below context menu example .. how value of second column invoked it?
tried $(this).find('td:second').text()
didnt work. :p
how this?
no need write such long code here. assign class name each <tr>
row
add click event listener this:
$(".row").click(function () { var txt = $(this).children().eq(1).text(); alert(txt); });
Comments
Post a Comment