title: Turn a class ID into an variable in jQuery
body: <p>How can I made the ID of an div class/id in HTML into a variable in Java/jQuery?</p>
  
  <p>So say for example I have the code below</p>
  
  <pre><code>&lt;div id="wrapper"&gt;
  
      &lt;div id="slider"&gt;
  
      &lt;div class="slide" id="slide1ID"&gt; &lt;a href="link"&gt; &lt;img src="imglink"&gt; 
  
                   &lt;/a&gt;   
      &lt;/div&gt;
       &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>How would I reference the id of "slide1ID" in jQuery? Would it be something similar to this?</p>
  
  <pre><code>var ID-of-Slide = 'id=slide1ID'
  </code></pre>