I have the following HTML code
<table>
<tr>
<td class="x">10</td>
<td class="x">10</td>
<td class="x">12</td>
<td class="x">18</td>
</tr>
</table>
Using jquery I can get and check what the value inside <td>
is using the following function:
$(".x").text(function(index, item){
console.log(item);
{
How do I check if <td>
has the value 10
, and so exchange the 10
value for a string, and then play into <td>
which has the value 10
back with value changed?