SWE 642 JavaScript example: Form Validation 3

Text version Next example Back to index

A simple example for validating radio buttons and checkboxes.

Options: Sunroof (only when you have cruise control) Cruise control Floor mats

Door: Two door four door (here we check if anyone of the options is selected)