title: If div class exists against a specific div ID jquery
body: <p>I have the following code:</p>
  <pre><code>if (jquery('#div1.class1').length) {
  </code></pre>
  <p>With 'div' being the name of the Div ID and 'class' being the name of the class id e.g.</p>
  <pre><code>&lt;div id=&quot;div1&quot; class=&quot;class1&quot;&gt;&lt;/div&gt;
  </code></pre>
  <p>However the code doesn't work. How do I specify that a specific class exists for a specific div (I have multiple div's with the same class)?</p>
  <p>Thank you</p>