So, I have a table and there is a colum called value with different numbers that varies from 0 to 2.
<column>Values<column>
<td>0</td>
<td>2</td>
<td>0</td>
Yes, I know that something like does not exist, it was just for sake of example. But the real question is, how can I with help of jquery find those numbers and replace it with something else.. for example
if(td == 1){
replace 1 with "Hello"
}
$('td').text(function(i,v){ return v=='1' ? 'hello' : v; });$('td:contains(1)').text(function(i,v){ return v == '1' ? 'hello' : v; });