There's a common constraint in votes or surveys like "choose no more than 3 items". And it's not a good idead to allow user control the checked items quantity. You can easily set constraint to a quantity of checked checkbox items with JavaScript and jQuery. You can just disable unchecked checkbox items if user checked maximum quantity and enables items again in case of unchecking.

I think it's a nice helpful solution. You can send array of IDs to function for actions.

The code of function here:

 

Usage of function:

 

I used this code for customization of SharePoint survey form and it was very good.