Resources » TypeScript » Scripting Languages » Javascript

Javascript code to allow only alphabets

Updated: Category: Javascript
Author: Member Level: GoldPoints: 7

//Allow only alphabets

function isValidAlpha()

var c= event.keyCode;

event.keyCode=(!( (c>=65 && c<=90)
||(c>=97 && c<=122)
|| (c==32)))?0:event.keyCode;


Did you like this resource? Share it with your friends and show your love!

Responses to "Javascript code to allow only alphabets"

No responses found. Be the first to respond...


Post Comment:

  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:   Sign In to fill automatically.
    Email: (Will not be published, but required to validate comment)

    Type the numbers and letters shown on the left.

    Submit Article     Return to Article Index
    Subscribe to Subscribers
    Active Members
    TodayLast 7 Daysmore...

    Awards & Gifts
    Talk to Webmaster Tony John

    Online Members

    Robert Domitz
    Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India