how to change default/standard checked value
<p>i use this script for filtering pursposes. (jqeury/jquery isotope). Works fine.  I have 4 filters...with the related values. Standard/default checkbox "all" is checked for all 4 filters. Now i want to make specified landingpages...by example "red shoes and brand1".  How can i change the default checked value? by example not "all", but "red" and "brand1" ?</p>

<pre><code> :javascript
      var data = {
        brands: 'brand1 brand2 brand3 brand4'.split(' '),
        productTypes: 'type1 type2 type3 type4'.split(' '),
        colors: 'red blue yellow green'.split(' '),
        sizes: 'uk-size8 uk-size9 uk-size10 uk-size11'.split(' ')
      }

  $(function(){

    var items = ''
    var $container = $('#container');
    var $filterDisplay = $('#filter-display');
    $container.append( items );
    $container.isotope()

    var filters = {};

    $('#options').on( 'change', function( jQEvent ) {

      var checkbox = jQEvent.target;
      var $checkbox = $( checkbox );
      var value = checkbox.value;
      var isAll = $checkbox.hasClass('all');

      var group = $checkbox.parents('.option-set').attr('data-group');
      // create array for filter group, if not there yet
      if ( !filters[ group ] ) {
        filters[ group ] = [];
      }

      var index = $.inArray( checkbox.value, filters[ group ] );

      if ( isAll ) {
        delete filters[ group ];
        if ( !checkbox.checked ) {
          checkbox.checked = 'checked';
        }
      }


      if ( checkbox.checked ) {
        var selector = isAll ? 'input' : 'input.all';
        $checkbox.siblings( selector ).removeAttr('checked');


        if ( !isAll &amp;&amp; index === -1 ) {
          // add filter to group
          filters[ group ].push( checkbox.value );
        }

      } else if ( !isAll ) {
        // remove filter from group
        filters[ group ].splice( index, 1 );
        // if unchecked the last box, check the all
        if ( !$checkbox.siblings('[checked]').length ) {
          $checkbox.siblings('input.all').attr('checked', 'checked');
        }
      }

      var i = 0;
      var comboFilters = [];
      var message = []

      for ( var prop in filters ) {
        message.push( filters[ prop ].join(' ') );
        var filterGroup = filters[ prop ];
        // skip to next filter group if it doesn't have any values
        if ( !filterGroup.length ) {
          continue;
        }
        if ( i === 0 ) {
          // copy to new array
          comboFilters = filterGroup.slice(0);
        } else {
          var filterSelectors = [];
          // copy to fresh array
          var groupCombo = comboFilters.slice(0); // [ A, B ]
          // merge filter Groups
          for (var k=0, len3 = filterGroup.length; k &lt; len3; k++) {
            for (var j=0, len2 = groupCombo.length; j &lt; len2; j++) {
              filterSelectors.push( groupCombo[j] + filterGroup[k] ); // [ 1, 2 ]
            }

          }
          // apply filter selectors to combo filters for next group
          comboFilters = filterSelectors
        }
        i++
      }

      // console.log( message );
      // console.log( comboFilters.join(', ') );

      $container.isotope({ filter: comboFilters.join(', ') });

      $filterDisplay.text( comboFilters.join(', ') );

    });

  });
</code></pre>

<p>Ciao..remco</p>
