Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Form validation based on checkbox

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #200150
    TWG
    Participant

    I’ve got a form that I’m using .validate() to check if the fields are filled in.

    I need to modify this now to check if a checkbox (#closeAccount) is checked or not and then run the appropriate .validate() on the form at submission.

    Can anyone help me with this?

    https://jsfiddle.net/maddtechwf/w21s25bk/

    #200193
    TWG
    Participant

    Jerba,

    Sorry but that was no help at all. I’m trying to figure out how to utilize the .validate plugin as their docs are horrible.

    #200208
    TWG
    Participant

    Jebra,

    That’s not the problem.

    I have a total of 15 different sections with radio boxes. They are all required unless a checkbox on my demo page is checked. If that box is checked then I need to remove the validate rules for all of the items.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.