<input type="submit" name="sendNewSms" class="inputButton" id="sendNewSms" value=" Send " /> <input type="checkbox" onchange="document.getElementById('sendNewSms').disabled = !this.checked;" />