Is it possible to disable a certain keyboard key (like asterisk or string) by using jquery?
Share
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.
You can’t disable a key stroke as such but you could capture it with jQuery and overwrite its action (return false). The example below captures the enter key. Just change 13 to any key code you need to disable.