how to create input that show error with javascript and jquery code example Example: how to validate the textbox using jquery BY LOVE if ($('#txtName').val() == "")