1. Hugh is now back at work, more or less full time, after a slower than expected recovery from his neck surgery early this month. Obviously we have a backlog of support to clear, and are working as hard as we can to take care of it. If you have an unanswered thread more than 3 days old, please post one (and only one) "bump" on it, to move it in to our "last 3 days" list. If you have an unanswered issue in a forum you no longer have access to due to subscriptions timing out, please use the Contact Us form, and provide us with the URL to the thread.

JS check if checkbox is checked?

Discussion in 'Fabrik 3.x Testing' started by adamck, Apr 13, 2012.

  1. adamck New Member

    Level: Community
    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
  2. adamck New Member

    Level: Community
    OK so im doing this JS
    Code (text):

    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??
  3. rob Administrator

    Level: Community

Share This Page