The problem is, you're asking jQuery to find the first
td
in the table. You need to ask it for the first
td
in the row.
Something like this should work:
$(".browseTable").on("click", "td", function(){
var ptsID = $(this).parent("tr").find("td:first").text();
alert(ptsID);
});
https://jsfiddle.net/9pbmb1tj/[
^]