jquery/javascript to disable button within a table cell
- by user1831612
I have a table cell with 2 buttons in it.
<td align="left" >
<input type="button" value="edit"/>
<input type="button" value="save" disabled="disabled"/>
</td>
By default save button is disabled. On the click of edit button, save button button must be enabled. The problem is i cannot assign id's to buttons since the table is dynamically generated using struts2 s:iterator tag. If i do there will be 2 or more cells with the same id
How can I achieve this?