maheshforum Posted September 14, 2007 Share Posted September 14, 2007 Hi, I don't want to display the aplhabets in the text field. So how can i restrict the key board values display using java script,Thanks in Advance,Maheshwaran Devaraj Link to comment Share on other sites More sharing options...
Synook Posted September 14, 2007 Share Posted September 14, 2007 I don't quite understand your question. Do you want users to be unable to type alphabetical characters in a text field? Link to comment Share on other sites More sharing options...
maheshforum Posted September 14, 2007 Author Share Posted September 14, 2007 I don't quite understand your question. Do you want users to be unable to type alphabetical characters in a text field?yes. help me to resolve this. Give me a piece of code example Link to comment Share on other sites More sharing options...
PrateekSaxena Posted September 14, 2007 Share Posted September 14, 2007 You can write a functoin on the on change of the text field and then remove it if you dont like it document.getElementById("myInputField").onchange = function(){if(document.getElementById("myInputField").value = "f") alert("Whoa");} Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.