SyntaxFix
Write A Post
Hire A Developer
Questions
The following has worked for me very well:
$("#button").attr('disabled', 'disabled');