1
我有一个jsp页面与JSTL tags.jsp页面包含2个不同tab.If用户单击第一个选项卡,然后要显示与tbody包含值列表的表。罚款。现在我想改变c:forEach项目,当用户点击第二个选项卡。两个选项卡列表包含相同的参数与不同的值。所以我需要改变c:forEach项目使用javascript。这可能吗 ?更改c:forEach列表项目使用javascript
感谢你
在JSP中
<table id="dynamic-table">
<thead>
<tr>
<th>Sl.No.</th>
<th class="sorting_disabled">Loan Id</th>
<th class="sorting_disabled">Name</th>
</tr>
</thead>
<tbody>
<c:forEach var="mainlist" items="${S1List}" varStatus="status">
<tr>
<td class="center">${status.index + 1}</td>
<td>${mainlist.loanId}</td>
<td>${mainlist.name}</td>
</tr>
</tbody>
</table>
我想= “$ {S2List}” 使用JavaScript
的Javascript
更改的项目= “$ {S1List}” 项funcion changevalueWhenSecondTabclick(){
//I want the solution code here
}