Sha256: 22b8b5ea706b11f9396aa1d2918c9bf70ee87718f77719271340d8c72063a8ba
Contents?: true
Size: 426 Bytes
Versions: 11
Compression:
Stored size: 426 Bytes
Contents
$(document).ready(function() { if ($(".categories input:checked").length > 0) { $('input[type=checkbox]:not(:checked)').attr('disabled', true); } $('.categories input[type=checkbox]').change(function(){ if($(this).is(':checked')) { $('input[type=checkbox]').attr('disabled', true); $(this).removeAttr('disabled'); } else { $('input[type=checkbox]').removeAttr('disabled'); } }); });
Version data entries
11 entries across 11 versions & 1 rubygems