How can I ensure that user press "printable" character in jquery?
I try this but it doesn't work
$("#foo").keyup(function (e) {
if (e.charCode) {
console.debug('this is printable char');
}
});
I would want only numbers, A-Z a-z character, and also "è,$,%" etc, but not arrow, enter,f5 etc