Jump to content

Restrict the key board values


maheshforum

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...