Hi Friends,
What is the way to iterate the Table and Make all the input types editable on the click of a checkbox.
Here is what My Requirement is :
In this table, there may be any no of rows can exist. But i need to make the row editable to all columns (except First Column - > Name) when a checkbox of that row is clicked.
Can somebody tell me how to do this? Thanks for your replies in advance.
What is the way to iterate the Table and Make all the input types editable on the click of a checkbox.
Here is what My Requirement is :
Code:
<table id="adSearchTable" cellspacing="3">
<thead>
<tr class="tableheader" style="height: 15px;">
<td class="tableheader" align="center">Name</td>
<td class="tableheader" align="center">Edit</td>
<td class="tableheader" align="center">Location</td>
<td class="tableheader" align="center">Salary</td>
<td class="tableheader" align="center">History</td>
</tr>
</thead>
<tbody>
<tr id="tr128009114">
<td>Ashish</td>
<td> <input name="tagLevelOptimizationBean[0].optimize" value="on" type="checkbox"> </td>
<td>
<input name="tagLevelOptimizationBean[0].Location" value="Hisar" disabled="disabled" type="text">
</td>
<td>
<input name="tagLevelOptimizationBean[0].Salary" value="12344" disabled="disabled" type="text">
</td>
<td>
<input name="tagLevelOptimizationBean[0].History" value="Software" disabled="disabled" type="text">
</td>
</tr>
<tr id="tr128009115
">
<td>Amit</td>
<td> <input name="tagLevelOptimizationBean[0].optimize" value="on" type="checkbox"> </td>
<td>
<input name="tagLevelOptimizationBean[0].Location" value="Pune" disabled="disabled" type="text">
</td>
<td>
<input name="tagLevelOptimizationBean[0].Salary" value="352345" disabled="disabled" type="text">
</td>
<td>
<input name="tagLevelOptimizationBean[0].History" value="IT" disabled="disabled" type="text">
</td>
</tr>
</tbody>
</table>
Can somebody tell me how to do this? Thanks for your replies in advance.
Comment