[jQuery] allow no more than 3 checkboxes checked

[jQuery] allow no more than 3 checkboxes checked


I have about 10 checkbox input elements with the same name and I'd
like to not let the user select more than 3 of them. How can I do
this with Jquery?