1
私はJSTLタグを持つjspページを持っています.JSPページには2つの異なるタブがあります。ユーザーが最初のタブをクリックすると、値のリストを含むtbodyで表を表示します。ユーザーが2番目のタブをクリックしたときにc:forEach項目を変更したいと思います.2つのタブリストには同じ値のパラメータが含まれています.c:forEachの項目をjavascriptで変更する必要があります。これは可能ですか? JSP変更c:forEachリスト項目javacriptを使用
<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>
であなたに
に感謝
私はJavaScriptを使用して
項目に項目= "$ {S1Listを}" に変更したい= "$ {S2List}" のJavascript
funcion changevalueWhenSecondTabclick(){
//I want the solution code here
}