You need to sign in to do that
Don't have an account?
ARVIND ADMIN 6
working with Alpha-Numeric keys in JavaScript
i have writen the code for Alpha-Numeric keys but it working for all keys in the keyboard (delete,backspace,enter,arrowkeys.............)
The piece of code is
The piece of code is
<apex:page > <script> function keyup() { alert("key up calles"); } function keypress() { alert('key press calles'); } function keydown() { alert('key down calles'); } </script> <apex:form > Name:<input type = "text" onkeyup="keyup()"/><br/> Email:<input type = "text" onkeypress="keypress()"/><br/> PhoneNumber:<input type= "text" onkeydown= "keydown()"/><br/> </apex:form> </apex:page>
Reference: http://www.aspsnippets.com/Articles/Allow-only-AlphaNumeric-Alphabets-and-Numbers-characters-and-space-only-in-TextBox-using-Javascript.aspx