how to disable on click function in javascript code example Example: enable html button $('#Button').prop('disabled', true);