how to make a button disabled in html and java code example Example: enable html button $('#Button').prop('disabled', true);