i have a problem for validate alphanumeric in mobile browser.
i have code like this.
var regex_alphanumeric = /[^[a-z 0-9]]*/gi;
$('#address').keypress(function (e) {
if(e.key.match(regex_alphanumeric)){
e.preventDefault();
return false;
}
});
with this code, only support for desktop browser, but if i check in mobile browser, validate alpha numeric not running well because in mobilebrowser e.key value always 229
how to check alphanumeric in mobilebrowser?