textbox required validation in jquery onsubmit code example Example: how to validate the textbox using jquery BY LOVE if ($('#txtName').val() == "")