disable button in html with condition code example Example: enable html button $('#Button').prop('disabled', true);