$(document).ready(function() { $("#contact_form").validate({ submitHandler:function(form) {SubmittingForm();}, rules: { name: "required", from: "required", subject: "required", message: { required: true }, captcha_word: { required: true } }, messages: { name: "Please enter your name", from: "Valid email required", subject: "Please enter a subject", message: "What's your message?" } }); });