I am pretty rubbish when it comes to jquery so im looking for a little help.
I have a table with a number of rows and 5 columns.
Column1 contains a checkbox and column 4 contains an empty TD. I have a textbox that I want to be able to add a comment into and for a button to be able to update any rows TD where the rows check box has been selected.
Getting the selected checkbox is easy enough but I dont really know how to update the TD.
Can anyone help out?
Thank you
<tr class="t-state-selected"><td>
<input name="checkedRecords" type="checkbox" value="e85b7931-1c62-11e1-8244-4040dde94e2e " title="checkedRecords">
</td><td>Some info</td><td>ABC</td><td> </td><td>123</td><td></td><td> </td></tr>
A an example of one of the tr in my table. I want to see if checkedRecords is seletected and if it is then add the value “Updated :)” into the last td.
You could add an
idto all the cells you want to update. E.g.In your jquery, check for the relevant checkbox for each row and update the
tdif required