Team,
Could you please tell me how to update a cell using jquery?
<table id='lop'>
<thead id='loph'>
<tr>
<td class='type'>Type</td>
<td class='name'>Name</td>
</tr>
</thead>
<tbody id='lopb'>
<tr id='1'>
<td class='type'>W</td>
<td class='name'>ZZZ</td>
<tr>
<tr id='2'>
<td class='type'>W</td>
<td class='name'>YYY</td>
<tr>
</tbody>
</table>
I would like to update second row name to XXX from YYY.
Please, The answer should be based on id and class name used in the html, not number/order based while using the jquery.
Also the below solution is not working,
$('#lop #2 .name').html('XXX') //Working
in the case of
var rowID = '#2';
$('#lop rowID .name').html('XXX') //Not Working