Help with validate plugin

Help with validate plugin

 I was successful in adding validate to my contact form, but then when I added the submitHandler option it stopped working completely.  I want to handle the submit myself and then post a thank you message on the bottom of the form - that code works fine when it is by itself, but not with the submitHandler.  In fact, I can't get a submitHandler function to do ANYTHING, including a simple alert.  Code is below - any help would be much appreciated!


Roi


 $(document).ready(function(){

$("#contactForm").validate({

submitHandler: function(form) {

    var postData = $('#contactForm').serialize();

$.post('sendtome.php',postData);

$('#thanks').append("Thanks! I'll be in touch within 24 hours");

   };

});

});