Disable/enable an input with jQuery?

jQuery 1.6+ To change the disabled property you should use the .prop() function. jQuery 1.5 and below The .prop() function doesn’t exist, but .attr() does similar: Set the disabled attribute. To enable again, the proper method is to use .removeAttr() In any version of jQuery You can always rely on the actual DOM object and is probably a little faster than the other two … Read more