Remove all instances of class when button clicked
<p>I'm trying to remove all instances of a given class on the page when a button is clicked. The code works fine on its own, just not from within a click function. The code I have is:</p>

<pre><code>$('#myButton').click(function() {
    $("#wrapper").removeClass("myClass");
});
</code></pre>
