how to validate inputs before submission using jquery code example Example: how to validate the textbox using jquery BY LOVE if ($('#txtName').val() == "")