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