jQuery Validation - adding method, after successful validation

jQuery Validation - adding method, after successful validation

I am fairly new to jQuery, javascript, and its plugins. I have developed a method to handel the submission but i need to incorporate jquery validation.

I was running my method with the onClick event of my button, but now that the button is submit, not a button, my method gets ran even if the form is empty. I only want my method to run when validation has been successful. My method is an ajax post.
[code]
var poststr = 'add=y&var1='+var1+'&var2='+var2+'&var3='+var3;
$.post('url/page', poststr, function(data) {  $('#hiddendiv').html(data);  });
[/code]