Jquery find table cell where value is X Jquery find table cell where value is X jquery jquery

Jquery find table cell where value is X


You can use filter method:

$('td').filter(function(){    return $(this).text() === '5'})


Use the :contains selector:

var td = $("td:contains('5')");

Edit:This will also select the td with 15 and 25, if you want exact 5, then use the .filter method as the other answer said.