javascript - How to get second column value of invoked row in table? -


in below context menu example .. how value of second column invoked it?

refer link

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); }); 

jsfiddle


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -