$('#contact-form').validator(); giving jquery error code example Example: how to validate the textbox using jquery BY LOVE if ($('#txtName').val() == "")