Return to Snippet

Revision: 61422
at December 11, 2012 19:16 by laxman2021


Initial Code
<script language=Javascript>

        function isSpaceKey(evt)
      {
         var charCode = (evt.which) ? evt.which : event.keyCode
         
         if ((charCode < 65 || charCode > 90) && (charCode < 97 || charCode > 123) && charCode != 32 && charCode != 8)
         {
             alert("Enter Characters Values");
              return false;
         }
       
             
         return true;
      }
   </script>

onkeypress="return isSpaceKey(event);"

Initial URL

                                

Initial Description
Special chars, Numbers validation.

Initial Title
Javascript  validation for text box . Special Characters, Numbers.

Initial Tags
validation

Initial Language
PHP