Best way to disable button in Twitter’s Bootstrap [duplicate] October 3, 2022 by Tarik You just need the $('button').prop('disabled', true); part, the button will automatically take the disabled class.