title: Using jQuery to see if a div has a child with a certain class
body: <p>I have a div <code>#popup</code> that is dynamically filled with several paragraphs with the class <code>.filled-text</code>. I'm trying to get jQuery to tell me if <code>#popup</code> has one of these paragraphs in it.</p>
  
  <p>I have this code:</p>
  
  <pre><code>$("#text-field").keydown(function(event) {
      if($('#popup').has('p.filled-text')) {
          console.log("Found");
       }
  });
  </code></pre>
  
  <p>Any suggestions?</p>