I´m trying this on Opera 10 and doesn´t work:
$('input').keydown(function(){ return false; });
This works fine in other browsers.
Can anybody tell me something about this??
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
See the key events compatibility table. Opera does not cancel a keypress when
keydownpreventsDefault. Use thekeypressevent instead to cancel keyboard input.(Although, this is rarely a good idea. Intercepting keypresses does not stop a field being changed by other means than keys, for example drag and drop. Set the readonly or disabled properties true to properly stop the value being changed.)