hello to all.
can you give me a code for enabling the submit button after checking the checkbox.

i want to disable the submit button and if they don't check the checkbox it will not enable.

can you help me with this guys..

thanks in advance.

happy new year..

First , this thread is not at all related to PHP,
and many codes available in google for this..
Just try with some code and come here for suggestions..

the below is the code for disabling a button:

document.myform.mybutton.disabled = true;

Write onclick function for your form checkbox and validate whether this is check or not, if it is checked then disable your button by the above code..

Please make a try on this and come up with your code if it not work..

Happy new year too...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.