[jQuery] Re: $(document).keydown only works in FireFox?

2009-01-07 Thread s0h0
thank you for ur reply. but it still wont work when try it the way you said. $(document).ready(function() { $(document).keypress(function(evt) { if (!evt) evt = window.event; if (evt.keyCode == 13) { // al

[jQuery] $(document).keydown only works in FireFox?

2009-01-05 Thread s0h0
Hello, i tried to use jQuery for cross browser compatibility...I want to execute a click on a Button when Enter got pressed on page... but the following script still only works in FireFox and not in IE. can anyone help me or have an idea? $(document).ready(function() { $(do