Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript jQuery .keypress(); event help! Re: jQuery .keypress(); event help!

#135242
CrocoDillon
Participant

Actually here’s an even better one with automatic keyCode conversion:

http://jsfiddle.net/tG8py/2/

EDIT: Actually use `this.value = keyCode;` instead of innerHTML, innerHTML bugs if you use backspace or something.