title: How to select elements which do not have a specific child element with JQuery
body: <p>Is there a JQuery selector to select all elements which do <strong>not</strong> have certain child element as a direct child? For example:</p>
  
  <pre><code>&lt;p&gt;
      text in paragraph
  &lt;/p&gt;
  &lt;p&gt;
      &lt;div&gt;text in div&lt;/div&gt;
  &lt;/p&gt;
  </code></pre>
  
  <p>I want to select only <code>&lt;p&gt;</code>s like the first one (without a <code>&lt;div&gt;</code> child). <em>Is this possible?</em></p>
  
  <p>Further information: Actually I'm trying to insert a <code>&lt;div&gt;</code> into all those <code>&lt;p&gt;</code> that do not have one by an expression like this:</p>
  
  <pre><code>$('p').wrapInner('&lt;div /&gt;')
  </code></pre>
  
  <p>But this would add an additional <code>&lt;div&gt;</code> to the second <code>&lt;p&gt;</code>.</p>