Jquery form validation plugin - how to do something on submit if a checkbox is checked?
<p>I have a very simple form with a few fields and a couple of checkboxes. What I need is when the <code>postto</code> checkbox is checked, it calls a function before it submits. </p>

<p>How can am I able to do this??</p>

<pre><code>$("#form").validate({
    debug: true,
    errorContainer: $(".warning"),
    rules: {
        comment: {
            maxlength: 25
        },
        'phone': {
            number: true
        }
    },
    submitHandler: function(form) {
        form.submit();  
     }
});


&lt;form id="form" method="post"&gt;
    &lt;div class="first"&gt;&lt;textarea name="comment" id="comment" tabindex="1" placeholder="Write your fondest memory here *" required&gt;&lt;/textarea&gt;&lt;/div&gt;
    &lt;div&gt;&lt;label for="firstname"&gt;First Name *&lt;/label&gt;&lt;input name="firstname" type="text" id="firstname" tabindex="2" required&gt;&lt;/div&gt;
    &lt;div&gt;&lt;label for="lastname"&gt;Last Name *&lt;/label&gt;&lt;input name="lastname" type="text" id="lastname" tabindex="3" required&gt;&lt;/div&gt;
    &lt;div&gt;&lt;label for="email"&gt;Email Address *&lt;/label&gt;&lt;input name="email" type="email" id="email" tabindex="4" required&gt;&lt;/div&gt;
    &lt;div&gt;&lt;label for="phone"&gt;Phone Number *&lt;/label&gt;&lt;input name="phone" type="text" id="phone" tabindex="5" required&gt;&lt;/div&gt;

    &lt;section&gt;
        &lt;div class="postto"&gt;&lt;input name="postto" type="checkbox" id="postto" value="1" tabindex="6"&gt;&lt;label for="postto"&gt;Post to my wall&lt;/label&gt;&lt;/div&gt;
        &lt;div class="newsletter"&gt;&lt;input name="newsletter" type="checkbox" id="newsletter" value="1" tabindex="7"&gt;&lt;label for="newsletter"&gt;I want to sign up to the Penguin newsletter&lt;/label&gt;&lt;/div&gt;

        &lt;div class="submit-button"&gt;&lt;input name="submitbutton" type="submit" value="enter" tabindex="8"&gt;&lt;/div&gt;   
        &lt;p class="warning"&gt;^ Please fill in the required fields with the correct information.&lt;/p&gt;
    &lt;/section&gt;
&lt;/form&gt;
</code></pre>
