Archive

Posts Tagged ‘only alpha’

Javascript: Allow Only Alpha

January 30th, 2008 No comments
JavaScript:
  1. function checkkey(str)
  2. {
  3. var myRegxp = /^([a-zA-Z]+)$/;
  4. if(myRegxp.test(str)==false)
  5. {
  6.     alert( "Please enter a valid username "+str );
  7. }
  8. }

Categories: Web Tags: ,
17039 pages viewed, 0 today
11071 visits, 0 today
FireStats icon Powered by FireStats