code: function(value) {
              this.$input.prop('checked', false);
              if($.isArray(value) && value.length) {
                 this.$input.each(function(i, el) {
                     var $el = $(el);
                     // cannot use $.inArray as it performs strict comparison
                     $.each(value, function(j, val){
                         /*jslint eqeq: true*/
                         if($el.val() == val) {
                         /*jslint eqeq: false*/                           
                             $el.prop('checked', true);
                         }
                     });
                 }); 
              }  
          }
docs: set checked on required checkboxes