简体   繁体   中英

Get Table Contents using HTML

<Table>
<tr>

<td>ID</td>
<td>NAME</td>
<td>MARKS</td>
<td>Grade</td>
<td><a href="AddRecord.jsp" >Update Record</a> </td>

</tr>
</Table>

How can I get table contents for modification, when I press Update hyperlink button? or how can I send these contents as a parameter to the page "AddRecord.asp".

If you are trying to submit a new row to a data table it sounds to me like you just need to use a traditional <form> and make the "Update Record" a submit type button. You are going to have to read up on using databases and JSP to process your update requests.

I suggest you start by reading on submitting forms at: http://www.w3schools.com/tags/att_form_action.asp

I think your best best is AJAX and JavaScript. Make an AJAX call to get the content and add it to the DOM using JavaScript.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM