Debug mode is enabled for both forms, therefore they aren't submitted even if valid.

A simple comment form with submit validation and default messages

Validating a complete form

Topics (select at least two) - note: would be hidden when newsletter isn't selected, but is visible here for the demo

More examples

Testsuite

Javascript files used