Maximum number of checks in checkboxes

Hi!


I have a page with nine checkboxes and would like to add the functionality that a user can select 5 checkboxes maximum. Ideally I would also like to present their selection on the next page.


Any ideas anyone on how to code this?


TIA!

Discussions have been disabled for this post