disable button keep style javascript code example Example: enable html button $('#Button').prop('disabled', true);