I’m using the jQuery UI function .disableSelection() to disable text selection. While it works fine for <div> elements, I can’t get it to work for <input> elements. Any suggestions?
Here is an example of the problem: http://jsfiddle.net/7SfBx/
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.
Assuming you are looking to stop text selecting rather than disable an element, you can modify your code slightly to achieve this. Live example: http://jsfiddle.net/7SfBx/2/