Enable Disable Submit Button If One Checkbox is Checked

Demo Download

When working with web forms, there are various situations where you need to enable or disable submit button, today i am going to share how to enable or disable submit button if at least one checkbox is checked using jQuery.

Following is the simple HTML form having checkboxes and submit button.

HTML

jQuery

In the above jQuery script you can see that submit button is disabled by default. However submit button will be enable it at least one checkbox is checked.

Don’t forget to add jQuery library before the above script.

Demo Download

If you found this tutorial helpful, kindly share it with your friends and developer groups.

Facebook Official Page: All PHP Tricks

Article By
Javed Ur Rehman is a passionate blogger and web developer, he loves to share web development tutorials and blogging tips. He usually writes about HTML, CSS, JavaScript, Jquery, Ajax, PHP and MySQL.

6 Comments

    1. You will need some parameters, such as after successful payment, PayPal must return either payment is successful or failed parameter, if you received the successful parameter then you can make the button active.

  1. Good Day sir, i am making my project which is inventory system on PHP. Is it possible sir to access myModal from second page to first page? thank you sir if you can notice me . God Bless

Leave a Reply

Your email address will not be published. Required fields are marked *