title: How to get values in jquery from jsp using for loop?
body: <p>In my Jsp the value and class  is generating dynamically in a loop.</p>
  
  <pre><code>&lt;div&gt;
      &lt;c:forEach var="interestTab" varStatus="loop" items="${interestParam}"&gt;
          &lt;c:set var="interestFields" value="${fn:split(interestTab, '|')}" /&gt;
          &lt;c:set var="maxAmt" value="${interestFields[1]}" scope="page" /&gt;
          &lt;c:set var="minAmt" value="${interestFields[0]}" scope="page" /&gt;
          &lt;c:set var="interestRate" value="${interestFields[2]}" scope="page" /&gt;
          &lt;div class="personalcal-${loop.index}" style="display:hidden;"&gt;
              &lt;div class="minamount-${loop.index}"&gt;
                  ${interestFields[0]}
              &lt;/div&gt;
              &lt;div class= "maxamount-${loop.index}"&gt;
                  ${interestFields[1]}
              &lt;/div&gt;
              &lt;div class= "intrate-${loop.index}"&gt;
                  ${interestFields[2]}
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/c:forEach&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>i want to get all the values in jquery how can i do it ?? if it was not dynamically generated class or id then i can get it simply through $(".class").text(). but now my class is changing with loop how can i get it ??</p>