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

Popular posts from this blog

All overlapping substrings matching a java regex -

c++ - Using OpenSSL in a multi-threaded application -

php - Deleting/Renaming a locked file -