When submit the form, if the checkbox isn't checked, shows the tips and prevent the form submitted
<p>the code:</p>

<pre><code>&lt;form&gt;
&lt;div class="term"&gt;&lt;input type="checkbox" /&gt;I agree to the terms of the privacy &lt;/div&gt;
&lt;div id="tip"&gt; please agree the terms of the privacy &lt;/div&gt;
&lt;/form&gt;
</code></pre>

<p>the jquery code:</p>

<pre><code> $(document).ready(function() {
            $("#tip").hide();
          jQuery("form").submit(function() {

          if (jQuery('.term').is(':checked')) {
            jQuery("#tip").hide();

          }
          else {
          jQuery("#tip").show();
           return false;
    } 
        });
        });
</code></pre>

<p>when i checked the checkbox, then submit the form, the tips still shows. why?</p>
