I am using jquery-1.7.2.min.js
I’m getting TypeError:
$("#TextBox1").removeattr is not a function [Break On This Error]
$("#TextBox1").removeattr("disabled");
Why?
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.
The correct function name is
removeAttr(), notremoveattr:But starting from jQuery 1.6 it’s better to use the
.prop()method for setting native attributes such asdisabledandchecked: