jQuery(function(){ var max = 3; var checkboxes = jQuery('.SelectTree input[type="checkbox"]'); checkboxes.change(function(){ var current = checkboxes.filter(':checked').length; checkboxes.filter(':not(:checked)').prop('disabled', current >= max); }); });
Biuro prasowe
Zaloguj się

Głosowanie zostało zakończone – dziękujemy za oddane głosy!