Jump to content

Keyvalidation


danasegarane76

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...