SyntaxFix
Write A Post
Hire A Developer
Questions
$("#button_id").click(function() { $('#button_id').attr('disabled', 'true'); $('#myDiv').hide(function() { $('#button_id').removeAttr('disabled'); }); });
Don't use .attr() to do the disabled, use .prop(), it's better.
.attr()
.prop()