I want the jQuery Validate plugin to only display the validation messages only upon form submit and not when the focus from a input field is lost. How do Ii achieve this?
You need to disable all three handlers if you wish to receive absolutely no errors before submission and you can do validation like this:
$('#commentForm').validate({
onfocusout: false,
onkeyup: false,
onclick: false
})
You have to change the default option for onfocusout
$(".selector").validate({
onfocusout: false
})
More options to enable or disable are listed here - http://docs.jquery.com/Plugins/Validation/validate#toptions