title: How to check if child element does not have a class using jQuery
body: <p>I am trying to figure out how to check if a parent div has a child p element without a certain class.</p>
  
  <p>So e.g.</p>
  
  <pre><code>    &lt;div id="one" class="item"&gt;
          &lt;p class="A"&gt;&lt;/p&gt;
          &lt;p class="B"&gt;&lt;/p&gt;
          &lt;p class="C"&gt;&lt;/p&gt;
      &lt;/div&gt;
  
      &lt;div id="two" class="item"&gt;
          &lt;p class="B"&gt;&lt;/p&gt;
          &lt;p class="C"&gt;&lt;/p&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>If the div does not have a p element with the class "A", I want to hide that div.</p>
  
  <p>How would I do this?</p>
  
  <p>I tried:</p>
  
  <pre><code>if (jQuery(".item &gt; p.A").length &lt;= 0){
      //run code here
  }
  </code></pre>
  
  <p>but that does not seem to work</p>
  
  <p>Thanks</p>