I have a form with ONLY checkboxes, selects, and radio buttons. The output will depend on the combination of these different inputs. So if I have 2 of each then I would have 2^6(might be wrong) different choices. How do I get the inputs without using if statements?
The way I’m thinking is basically checking each input(using ifs) then somehow get the proper output. But I don’t think that’s not a good idea.
Maybe validate is a bad word?
Generally you loop through the collection of elements and based on the element type, or class name, you apply a set of rules. You don’t need to validate each individual form field on its own.