title: Remove div containing specific text and elements
body: <pre><code>&lt;div class="block"&gt;
      text
  &lt;/div&gt;
  &lt;div class="block"&gt;
      text
  &lt;/div&gt;
  &lt;div class="block"&gt;
      text &lt;button /&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Using jQuery, how can I remove the div containing both text and a button. I don't want to use <code>:last</code></p>