JQuery Check if a checkbox is checked checking only working onload
<p>I am trying to check if a checkbox is checked or not at all times but I'm only getting alerted when the page loads and not at any time when the status has changed.</p>

<p>Here is the code:</p>

<pre><code>&lt;script type="text/javascript"&gt;
    $(function(){

        if ($('#myCheckBox').is(':checked')) {
          alert('Yes my checkbox is checked');
    } else {
          alert('No my checkbox is not checked');

    };

});
</code></pre>

<p></p>
