title: Not Able to retrieve value from specific row <logic:iterate>
body: <p>I am iterating over a list and displaying value using bean:write, i am using a onfocus event to capture my row details and using </p>
  
  <p>code something like this :</p>
  
  <pre><code>&lt;logic:iterate id="empList" name="search" property="empList" indexId="index"&gt;
          &lt;tr&gt;
              &lt;td&gt;
                  &lt;span id="empid"&gt;&lt;bean:write name="empList" property="empID"/&gt;&lt;/span&gt;
              &lt;/td&gt;
  
              &lt;td&gt;
                  &lt;bean:write name="empList" property="firstName"/&gt;
              &lt;/td&gt;
  
              &lt;td&gt;
                  &lt;bean:write name="empList" property="lastName"/&gt;
              &lt;/td&gt;
  
              &lt;td&gt; 
                  &lt;html:button property="View" value="View" onfocus="viewPage()"/&gt;          
              &lt;/td&gt;
          &lt;/tr&gt;
  &lt;/logic:iterate&gt;
  
  
  &lt;script&gt;
  function viewPage(){
  var empid = document.getElementByID("empid).innerHTML;
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>but i am not able to get empid value in my javascript variable
  Please help</p>