I have a table, shown below:
<table id="paramsTable">
<tbody>
<tr>
<th>Name</th>
<th>Value <span style="color: Blue; cursor: pointer; font-size: smaller;" id="editParamValues">Edit</span></th>
<th>Type</th>
</tr>
<tr>
<td style="display: none;">1372</td>
<td>providername</td>
<td>BloombergFTP</td>
<td>String</td>
</tr>
<tr>
<td style="display: none;">1373</td>
<td>RateSetList</td>
<td>1020</td>
<td>String</td>
</tr>
<tr>
<td style="display: none;">1374</td>
<td>BloombergServer</td>
<td>CFC105</td>
<td>String</td>
</tr>
</tbody>
</table>
So now, that nifty little span, I have bound to this click event:
$('#editParamValues').live('click', function () {
alert('true');
});
Getting the alert, it works fine. However, I don’t want to alert, I want that binded method to change all of the cells that are in the value column to become textboxes filled with whatever their value is, so the user can edit them.
How would I do this?
1 Answer