Note that there are some explanatory texts on larger screens.

plurals
  1. POchanging table column headings on click of button
    primarykey
    data
    text
    <pre><code>&lt;%@include file="/WEB-INF/jsp/include/pagedirectives.jsp"%&gt; &lt;div style="background: #D6E8FF; padding: 10px;" class="advanced_search"&gt; &lt;%@include file="/WEB-INF/jsp/include/page.topmessagebox.jsp"%&gt; &lt;table class="form" cellspacing="0" id="requestSubmissionEform"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td class="label"&gt;&lt;b&gt;Label&lt;/b&gt;&lt;/td&gt; &lt;td class="label" align="left"&gt;&lt;b&gt;Form 1&lt;/b&gt;&lt;/td&gt; &lt;td class="label" align="left"&gt;&lt;b&gt;Form 2&lt;/b&gt;&lt;/td&gt; &lt;td class="label" align="left"&gt;&lt;b&gt;Form 3&lt;/b&gt;&lt;/td&gt; &lt;td class="label" align="left"&gt;&lt;b&gt;Form 4&lt;/b&gt;&lt;/td&gt; &lt;td class="label" align="left"&gt;&lt;b&gt;Form 5&lt;/b&gt;&lt;/td&gt; &lt;/tr&gt; &lt;c:forEach items="${eformDetailsList}" var="eformDetails" varStatus="status"&gt; &lt;tr id="serviceTypeWithEform"&gt; &lt;td class="label"&gt;&lt;label for="${eformDetails.id}_0"&gt;&lt;c:out value="${eformDetails.label}" /&gt;&lt;/label&gt; &lt;input type="hidden" id="label_${eformDetails.id}_0" value="${eformDetails.label}" name="label_0"&gt;&lt;/input&gt; &lt;input type="hidden" id="index_${eformDetails.id}_0" value="${eformDetails.id}" name="index_0"&gt;&lt;/input&gt;&lt;/td&gt; &lt;c:if test="${eformDetails.controlType==1}"&gt; &lt;td id="Col0" style="visibility: visible;"&gt;&lt;input id="eformDetail_${eformDetails.id}_0" class="eformDetail" type="text" value="" name="form_0"&gt;&lt;/input&gt;&lt;/td&gt; &lt;td id="Col1" style="visibility: visible;"&gt;&lt;input id="eformDetail_${eformDetails.id}_1" class="eformDetail" type="text" value="" name="form_1"&gt;&lt;/input&gt;&lt;/td&gt; &lt;td id="Col2" style="visibility: visible;"&gt;&lt;input id="eformDetail_${eformDetails.id}_2" class="eformDetail" type="text" value="" name="form_2"&gt;&lt;/input&gt;&lt;/td&gt; &lt;td id="Col3" style="visibility: visible;"&gt;&lt;input id="eformDetail_${eformDetails.id}_3" class="eformDetail" type="text" value="" name="form_3"&gt;&lt;/input&gt;&lt;/td&gt; &lt;td id="Col4" style="visibility: visible;"&gt;&lt;input id="eformDetail_${eformDetails.id}_4" class="eformDetail" type="text" value="" name="form_4"&gt;&lt;/input&gt;&lt;/td&gt; &lt;/c:if&gt; &lt;/tr&gt; &lt;/c:forEach&gt; &lt;c:if test="${empty eformDetailsList}"&gt; &lt;tr id="serviceTypeWithNoEform"&gt; &lt;td&gt;&lt;b&gt;There is no eform associated with this Service Type&lt;/b&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/c:if&gt; &lt;/tbody&gt; &lt;/table&gt; </code></pre> <p>this page will have 2 buttons (prev. and next). on click of next i want to change column headings to form 6,7,8,9,10 and so on for further clicks. please help!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload