JS check if checkbox is checked?

adamck

New Member
Hi Guys.
What js is needed to check that a checkbox is checked when submitting a form?
I need an alert if its not checked and for the form to submit correctly when it is checked.
Thanks
 
OK so im doing this JS
Code:
if ($('newusers___Terms').checked == true) {
document.getElement('.fabrikActions').show();
}
else{
document.getElement('.fabrikActions').hide();}

Which works by hiding the submit button when the box is unchecked.
But when its checked again it doesnt show the submit button.
Why??
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top