I have a HTML textbox, I restrict from special characters being entered. But when I paste using Ctrl + V the validation doesn’t fire.
I have a HTML textbox, I restrict from special characters being entered. But when
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.
As your question is tagged with jquery, you can bind also to the paste event. In this case, use the method .bind() to attach the same handler for multiple events (whitespace-separated):