I ma new to jquery.
I would like to update the table cell from Jquery.
The Php is as below.
For example I would like to update “firsttotal” with a different value. Please help.
<tr>
<td class="Left">Total</td>
<td></td>
<td id="firsttotal"><?php echo number_format('%.2n', $Total_Calculated_Cash); ?></td>
<td id="cashcalculator_total"><a href="#"><?php echo number_format($Total_Actual_Cash, 2); ?></a></td>
<td><?php echo number_format($Total_Calculated_Other, 2); ?></td>
<td><?php echo number_format($Total_Actual_Other, 2); ?></td>
</tr>
since anchor is inside TD, you should use jQuery(‘td#cashcalculator_total a’)