Jak włączyć przycisk, gdy pole wyboru jest wybierane w JavaScript
<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 " />
<input type="checkbox" onchange="document.getElementById('sendNewSms').disabled = !this.checked;" />
Daiwikrox bruh