Skip to content Skip to sidebar Skip to footer

Get Value Of Html Cells In Row Clicked With Javascript

I am populating a html table based on data stored in parse.com. So the table is dynamically populated, I am including editing options for the user to add, delete and edit a row.

Solution 1:

values in table are selected only after adding data dynamically. To get td values

var tr = $(this).closest('tr')
var tdUuid = $(tr).find('td').eq(0).text();
var tdProx = $(tr).find('td').eq(1).text();
var tdOffer = $(tr).find('td').eq(2).text();

Hope this should work.

Post a Comment for "Get Value Of Html Cells In Row Clicked With Javascript"