Enable button when checkbox is checked
I've searched around and tried different suggestions I have found but nothing is working. I need the submit button to enable after the user checks the checkbox. Here is my code so far:
- <label><input id="Confirmation" type="checkbox" /><span class="red"> I hearby affirm that the information included is true and correct.</span></label>
- <input id="Submit" type="button" value="Submit" disabled="disabled" data-inline="true" />
- <img class="noFormat" src="/images/help.png" id="RentalRegHelp" alt="Help" title="Help" />
- <script>
- $(document).ready(function (e) {
- $("#Confirmation").click(function () {
- $("#Submit").attr("disabled", !this.checked);
- });
- </script>