Hey Everyone,
I am trying to get the code of an event using the event.which jQuery function. It is working great in FF, but in IE8 I am only getting "undefined". Is there some reason this would not work in IE8? I am using jQuery version 1.3.2 and the code is bellow (simplified).
function handleInput(event) {
//Get the character code of the pressed button
keycode = event.which;
}
Thanks, Metropolis
** EDITED **
Basically what I want to be able to do is have an HTML element with an onkeyup event attribute which will call to the handleInput function. Here is what I want the HTML to look like.
<input type="text" value="" onkeyup="handleInput(event)" />
Is there a way to pass "event" like this and have jQuery recognize it?