I have a form text field that I want to allow only numbers and letters in. (i.e., no #$!, etc...) Is there a way to throw up an error and prevent the keypress from actuall
$('#yourfield').keydown(function(e) { // Check e.keyCode and return false if you want to block the entered character. });