I need html input which allows only alphanumeric chars. Here is my input
<input type="text" id="l1t1r1c1" onkeypress="javascript:return isAlphaNumeric(event,this.value);" maxlength="5" onkeyup="this.value = minmax(this.value, 0, 99.99, this)">
isAlphaNumeric javascript function works on Chrome but fails in IE 10. How can I run this function in IE10?
here is my function
function isAlphaNumeric(e) { // Alphanumeric only
var k;
document.all ? k = e.keycode : k = e.which;
return ((k > 47 && k < 58) || k == 46 || k == 0);
};
THX.