jquery chekbox selected
<p>Hi I'm having some problems with jquery checkbox selected. I want to do a task when the checkbox is selected. my code for this is</p>

<pre><code>$(document).ready(function() {
        if ($('#chxGetText').is(':checked')) {
            alert("OK");
        }
    });

&lt;input id="chxGetText" type="checkbox" /&gt;
</code></pre>

<p>But nothing happen when I check the checkbox. Any ideas?</p>
