I am trying to find a Use the :contains selector: Edit:
This will also select the td with You can use filter method: where the value is 5. It is a calender so there will only be one 5 value.
var td = $("td:contains('5')");
15
and 25
, if you want exact 5
, then use the .filter
method as the other answer said.$('td').filter(function(){
return $(this).text() === '5'
})