My JavaScript skills are still at a beginner level and I've come across a bug that's causing me trouble.
The issue is with keyCode not working on mobile devices (Chrome). It seems that mobile devices do not support keyCode.
I think I could use isNaN with an ! instead of the code below, but I'm having trouble writing it in a clear way.
var code = window.event.keyCode;
if ((code > 34 && code < 41) || (code > 47 && code < 58) || (code > 95 && code < 106) || code == 8 || code == 9 || code == 13 || code == 46){
window.event.returnValue = true;
return;
}
If anyone has any suggestions, I would greatly appreciate it! Feel free to leave your comments on the microsite as well if you'd like.
Sincerely,