garora8
asked on
textbox only allow to enter alphabet in javascript
textbox only allow to enter alphabet in javascript
That is not going to work, since it is unclear what keyEntry is. Add this as the first line of the function:
keyEntry = e.keyCode;
keyEntry = e.keyCode;
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks
function AllowAlphabet(e){
if(((keyEntry >= '65') && (keyEntry <= '90')) || ((keyEntry >= '97') && (keyEntry <= '122')) || (keyEntry=='46') || (keyEntry=='32') || keyEntry=='45' )
return true;
else
return false;}