forms - Validating name field using jquery -
actually new jquery web designing
now need piece of code invoke after blur event on text box.
i need jquery code validating name field in html form.
make sure add latest version of jquery.... here sample validating not null.
$(document).ready(function() { $('input#fname').on('blur', function() { if( $(this).val() == '' || $(this).val() == "null" { // code handle error } else { return true; } }) });
Comments
Post a Comment