Can't addClass() to an object after passing it through a function - jQuery
<p>I have a function that passes through an object in its parameter, and then does something with that object.</p>

<pre><code>function theFunction (theButton) {
    theButton.addClass('inactive');
}

$('.button').click(function () {
    theFunction($(this));
    return false;
});
</code></pre>

<p>The problem is that it doesn't apply that class to the button. What am I missing here?</p>

<p>Here's a <a href="http://jsfiddle.net/hNYmd/" rel="nofollow">JS Fiddle</a> with the code in.</p>
