menu opener search

California Consumer Privacy Act Opt Out Form

jQuery(function () { initFilterCount(); }); function initFilterCount(){ jQuery('.js-resource-filter').each(function(){ var form = jQuery( this ); var countSpans = form.find('.js-count'); var url = location.href; url += url.indexOf('?') === -1 ? '?' : '&'; url += 'json=1'; jQuery.getJSON( url, function( data ) { countSpans.each(function(){ var span = jQuery( this ); var name = span.data('name'); var value = span.data('value'); if ( typeof data[ name ] !== 'undefined' ){ if ( typeof data[ name ][ value ] !== 'undefined' ){ span.text( data[ name ][ value ] ); } else { //span.parents('label.checkbox').addClass('disabled'); } } }); }); }); }