I have a form with about 20 tick boxes and I need a simple validation to make sure people tick something. There are also some text input boxes on the form but it doesn't matter if they are used or not.
Can anyone tell me the JS to do this:
if (no boxes ticked) {alert 'You must select something'}