Javascript: convert native browser event to jQuery event.

function ourEvent(e) { e=jQuery.event.fix(e); // console.log(e.which); : : }
Make your native browser event to be a jQuery event. This is what I was needing to handle different browser key events.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.