jquery/javascript to disable button within a table cell
Posted
by
user1831612
on Stack Overflow
See other posts from Stack Overflow
or by user1831612
Published on 2012-11-28T16:46:37Z
Indexed on
2012/11/28
17:04 UTC
Read the original article
Hit count: 160
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?
© Stack Overflow or respective owner