How to change the disabled property in jQuery

If you are using jQuery 1.6 or greater, there is a simple way to change the disabled property in an input field:

$("input").prop('disabled', true);
$("input").prop('disabled', false);
This entry was posted in javascript. Bookmark the permalink.