Jquery function when a textbox loses focus
<p>I have textbox that I want to run some jquery when the textbox loses focus, so after the user clicks out of the text box.</p>

<p>I have tried to do this</p>

<pre><code>$("#textbox").focusout(function () {
    alert("hello");

});
</code></pre>

<p>but I get an error saying Object doesn't support this property or method.</p>

<p>How can I do this then?</p>
