I have a jsp that contains a table with some information from db. I have the possibility to edit/delete/submit. If I click on submit button, I want to disable edit and delete buttons.
Do you have any suggestions on how can I do this?
My table looks like this:
<tr>
<td><%=rs.getInt(1)%></td>
<td><%=rs.getString(2)%></td>
<td><%=rs.getString(3)%></td>
<td>
<input type="image" src="../img/edit.gif" width="20" height="20" />
</td>
<td>
<input type="image" src="../img/delete.gif" width="20" height="20" onclick="deleteRecord(<%=rs.getInt(1)%>);"/>
</td>
<td>
<input type="button" style="border:0;background:transparent;font-family:Trebuchet MS" value="Submit" onclick="submitPaper(<%=rs.getInt(1)%>);"/>
</td>
</tr>