Site Archives

Validating check boxes and radio buttons with Prototype


The title might be misleading, but the kind of validation I was after is checking whether or not at least one option in a group of elements (check boxes or radio buttons) is checked. This is useful in cases where you want the user to make a choice on their own instead of accepting a default value, or in cases where you can’t supply a default one.