title: Get value from JavaScript of a cell of a dynamic table (VisualforcePage)
body: <p>I am creating a DYNAMIC tables, and I want to call a JavaScript (by clicking) function getting the value of a determinate cell. The problem is that I am trying to get the value using an <strong>input hidden</strong>, and this is always getting the first value of the first table. </p>
  
  <p>How can I get the value of the determinate cell.</p>
  
  <p>My code is the next one: </p>
  
  <pre><code> &lt;apex: repeat ....&gt;
      &lt;apex:pageBlockTable value="{!block}" var="document" id="docList"&gt;
          &lt;apex:column headerValue="NameHeader"&gt;
              &lt;apex:commandLink value="{!document.Nombre_doc_adjuntos__c}" id="checkfunction" onclick="jsFunction();" &gt;
                  &lt;input type="hidden" class="DocClass" id="AttDocClass" name="AttDocClass" value="{!document.id}" /&gt;
              &lt;/apex:commandLink&gt;                             
          &lt;/apex:column&gt;
      &lt;/apex:pageBlockTable&gt;
  &lt;/apex:repeat&gt;
  </code></pre>
  
  <p>So how can I get the value of my dynamics table, not to get the first value of the first table?</p>
  
  <p>Cheers</p>