Skip to content

Instantly share code, notes, and snippets.

Created June 16, 2019 08:44
What would you like to do?
jQuery snippet to limit how many checkboxes can be checked
$( '.things' ).click( function() {
var bol = $( '.things:checked' ).length >= 8;
$( '.things' ).not( ':checked' ).attr( 'disabled', bol );
// from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment