Disabling an element in jquery 1.6
问题 With the release of jQuery 1.6, the recommendation on SO has been to generally start using prop() where you used to use attr() . What happens when I want to disable an element? $('.control').prop('disabled', 'disabled'); $('.control').prop('disabled', true); Neither of these seem to disable the control. Is disabling an element the exception to the rule? UPDATE And turns out the reason the element wasn't being disabled was because of a line I had that ran before the lines above: $('.control')