bootstrap-multiselect icon indicating copy to clipboard operation
bootstrap-multiselect copied to clipboard

How to limit checkbox selections?

Open tiagocaus opened this issue 5 years ago • 1 comments

I would like to limit the number of checkbox allowed. One can only select 3 checkboxes.

http://jsfiddle.net/uo8v45qj/

tiagocaus avatar Sep 24 '19 12:09 tiagocaus

Unfortunately there is no direct way to limit the selection but you can do it with JS. This is not a finished example as it gets a little funky with the Select All option so more work is needed to make it perfect but it does limit selection and so it is a good start.

http://jsfiddle.net/qovax9uw/

HenrikHolmIT avatar Oct 28 '19 14:10 HenrikHolmIT