alertBox doesn't display when ticking checkbox
<p>I can't see any error in my code. However, the Alertbox doesn't display when checkbox is ticking. </p>

<p>Is there anyone can help me? Thanks in advance.</p>

<pre><code> &lt;script type="text/javascript" language="javascript" src="jquery/jquery-1.4.4.min.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript" language="javascript"&gt;
    $(function(){

              if($("#checkkBoxId").attr("checked"))
                        {
                            alert("Checked");
                        }
                        else
                        {
                            alert("Unchecked");
                        }

    });


    &lt;/script&gt;
    &lt;/head&gt;

    &lt;body&gt;

        &lt;p&gt;&lt;input id="checkkBoxId" type="checkbox"&gt;Enable&lt;/p&gt;
    &lt;/body&gt;
</code></pre>
