title: Access dynamic generated div id
body: <p>I have some div ids that are generated dynamicly via php</p>
  
  <pre><code>&lt;div id='a&lt;?php echo $gid?&gt;&gt;
  </code></pre>
  
  <p>How can I access them in JavaScript? All these divs start with "A" followed by a number.</p>
  
  <p>Is there some kind of search function</p>
  
  <pre><code>getElementById(a*)?
  </code></pre>
  
  <p>Thanks for any help</p>