danasegarane76 Posted June 19, 2006 Share Posted June 19, 2006 Hi all,I am using the following javascript code to restrict the entry to alphanumeric function issueentry(){ if((event.keyCode >= 97 && event.keyCode <= 122) || (event.keyCode >= 65 && event.keyCode <= 90) ||(event.keyCode >= 48 && event.keyCode <= 57) ) //alert(event.keycode); ; else event.keyCode = 0; } I want this code also allow the special charcters "& and : " to be allowed.How can I Improve this code to get my aim Link to comment Share on other sites More sharing options...
danasegarane76 Posted June 19, 2006 Author Share Posted June 19, 2006 or How can I implement validation of only the following letters charcters A-Z,a-z,0-9,&,: Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now