Select element by attribute only
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4333720/jquery-is-there-a-way-to-select-all-elements-on-the-page-with-a-specific-attrib">JQuery, is there a way to select all elements on the page with a specific attribute?</a>  </p>
</blockquote>



<p>My code</p>

<pre><code>&lt;html&gt;
    &lt;body&gt;
        &lt;script&gt;
            $(function(){
                $("No idea what to write here").remove();
            });
        &lt;/script&gt;

        &lt;button data-fun="a"&gt;Remove&lt;/button&gt;
        &lt;div data-fun="b"&gt;Remoave&lt;/div&gt;
        &lt;span data-fun="c"&gt;Remdove&lt;/span&gt;
        &lt;strong data-fun="d"&gt;Rdemove&lt;/strong&gt;
        &lt;b data-fun="e"&gt;Remosve&lt;/b&gt;
        &lt;p data-fun="f"&gt;Remoe&lt;/p&gt;
        &lt;div&gt;Not Remove&lt;/div&gt;
    &lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>I want to remove all the elements that have the <code>data-fun</code> attribute no matter what the element is and value of <code>data-fun</code> is.</p>
