title: php dynamic variable with jquery
body: <p>I have the variable $id in a loop which is the div id, so the div id is always changing.  I know with javascript it's done like this.</p>
  
  <pre><code>&lt;div id='$id' onclick='myfunction($id)' &gt;
  </code></pre>
  
  <p>How do i use jquery to get variables i don't know their id?</p>