いくつかのJavaScript onlickがあるテキストボックスがあり、正常に動作します。テキストボックスのオンロードJavascript
<c:if test="${columnA == 'MWS' || columnB == 'MWS'}">
<td class="right" style="padding-left: 20px;">MWS</td><td><input type="checkbox" name="hider" value="initial" checked="checked" onclick="javascript:toggleColumn('initialCol');"/></td>
</c:if>
<c:if test="${columnA == 'SMC Unfunded' || columnB == 'SMC Unfunded'}">
<td class="right" style="padding-left: 20px;">SMC/ELMP Unfunded</td><td><input type="checkbox" name="hider" value="initial" checked="checked" onclick="javascript:toggleColumn('smcUnfundedCol');"/></td>
</c:if>
<c:if test="${columnA == 'SMC Funded' || columnB == 'SMC Funded'}">
<td class="right" style="padding-left: 20px;">SMC/ELMP Funded</td><td><input type="checkbox" name="hider" value="initial" checked="checked" onclick="javascript:toggleColumn('smcFundedCol');"/></td>
</c:if>
<c:if test="${columnA == 'MMC' || columnB == 'MMC'}">
<td class="right" style="padding-left: 20px;">MMC</td><td><input type="checkbox" name="hider" value="initial" checked="checked" onclick="javascript:toggleColumn('targetCol');"/></td>
</c:if>
<c:if test="${columnA == 'Current Scenario' || columnB == 'Current Scenario'}">
<td class="right" style="padding-left: 20px;">Current Scenario</td><td><input type="checkbox" name="hider" value="initial" checked="checked" onclick="javascript:toggleColumn('currentCol');"/></td>
</c:if>
涼しいおかげで...にbiut試してみてください –
多くのページで使用されているインクルードのため、本文セクションを使用できません –
最良の選択肢は、ページが読み込まれた後に最初に見たいようにサーバー側でコンテンツを生成することです。 – user47900