I have a table with multiple rows and one column. Each table cell has a button in it. Like this:
<table id="table1" border="1">
<thead>
<tr>
<th>Select</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<form name="f2" action="javascript:select();" >
<input id="edit" type="submit" name="edit" value="Edit" />
</form>
</td>
</tr>
</tbody>
</table>
What I want to do: when one of the buttons is pressed I would like to change its value from "Edit" to "Modify". Any idea?
See Question&Answers more detail:os