# Disable/enable submit button

**URL:** <https://forum.kirupa.com/t/disable-enable-submit-button/213206>\
**Category:** Uncategorized\
**Created:** [January 17, 2007, 6:49pm UTC](https://forum.kirupa.com/t/disable-enable-submit-button/213206 "2007-01-17T18:49:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![acc](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@acc](https://forum.kirupa.com/u/acc)\
**Post date:** [January 17, 2007, 6:49pm UTC](https://forum.kirupa.com/t/disable-enable-submit-button/213206/1 "2007-01-17T18:49:38Z")

</div>

I have a form that have a whole bunch of checkboxes, but visitors aren’t necessarily going to need to check any of them, unless they want to request for something, as the page also serves as a download page.

I want the submit button to be disabled, unless any of the checkboxes are clicked.

I was able to get the submit button enabled once any checkbox is checked, but what if visitor decides to uncheck them and there aren’t any checked after all, how can I change back the submit button to being disabled?

Here’s a link to what I’m trying to do  
[http://www.amplis.com/mockup/tests/lit/litDownload.asp?b=all&doc=all](http://www.amplis.com/mockup/tests/lit/litDownload.asp?b=all&doc=all)

once a checkbox is clicked, submit and reset are enabled, but how can I get the buttons disabled, if visitor unchecks all the ones they checked?

is this possible?

EDIT: I realized I was making it much more complicated than I needed and changed my solution 🙂
