jquery input field validate() code example
Example 1: jquery form validation
function submitFunction(event){
event.preventDefault();
}
$("#form_id").submit(submitFunction);
Example 2: how to validate the textbox using jquery
BY LOVE
if ($('#txtName').val() == "")