how to enable a button when a checkbox is selected in javascript

Solutions on MaxInterview for how to enable a button when a checkbox is selected in javascript by the best coders in the world

showing results for - "how to enable a button when a checkbox is selected in javascript"
Mirko
05 Jun 2016
1
2<input onclick="alert('thank you for agreeing to the terms and conditions')" type="submit" name="sendNewSms" class="inputButton" id="sendNewSms" value=" i agree to the terms and conditions " />
3
4<input type="checkbox"  onchange="document.getElementById('sendNewSms').disabled = !this.checked;" />