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

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -