title: How to get every value in template which use each
body: <pre><code>&lt;template name="mytemplate"&gt;
      {{#each work}}
          &lt;div name="adiv"&gt;
              &lt;input type='hidden' value={{_id}} id="testid"&gt; &lt;br/&gt; 
          &lt;/div&gt;
      {{/each}}
  &lt;/template&gt;
  </code></pre>
  
  <p>If I use document.getElementById('testid'),It just get the lasted value.But I want to get the every value.</p>