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

Glib GIOChannel -

delphi - When I encode/decode SMS PDU (GSM 7 Bit) user data, do I need prepend the UDH first? -

python - Obscure curses error message when creating a sub window -