This article mainly introduces how to traverse tables containing input in js, and analyzes the techniques related to jsp reading Database Dynamic table Generation and JavaScript traversal table, for more information about how to use JavaScript to traverse tables containing input, see the example in this article. We will share this with you for your reference. The details are as follows:
Table:
<% DataTable firstGroupTable = ViewState ["firstGroupTable"] as DataTable; if (firstGroupTable! = Null) {for (int I = 0; I <firstGroupTable. Rows. Count; I) {%>
Level 1 |
|
"/> |
<% = FirstGroupTable. Rows [I] ["FirstNodeID"] %> |
|
) "> [Update] |
[Delete] |
[Level 2] |
<% }}%>
Js:
function editRow(rowIndex) { alert(window.groupTable.rows.item(rowIndex).cells.item(2).getElementsByTagName_r('input')[0].value);}
I hope this article will help you design JavaScript programs.