title: Function "select all" and iCheck
body: <p>I want to implement a "Select all" using <a href="https://github.com/damirfoy/iCheck/"><strong>iCheck</strong></a>.</p>
  
  <p>This is what I've done so far:</p>
  
  <pre><code>$(function () {
      $('input').iCheck();
      $('input.all').on('ifChecked ifUnchecked', function(event) {
          if (event.type == 'ifChecked') {
              $('input.check').iCheck('check');
          } else {
              $('input.check').iCheck('uncheck');
          }
      });
      $('input.check').on('ifUnchecked', function(event) {
          $('input.all').iCheck('uncheck');
      });
  });
  </code></pre>
  
  <p>Fiddle: <a href="http://jsfiddle.net/N7uYR/1/">jsfiddle.net/N7uYR/1/</a></p>
  
  <p><strong>I want that when "Check Box 1", "Check Box 2", "Check Box 3", "Check Box 4" are selected, "Select all" also gets selected.</strong></p>
  
  <p>Exactly like this: <a href="http://jsfiddle.net/ivanionut/N7uYR/">jsfiddle.net/ivanionut/N7uYR/</a></p>
  
  <p>How can I do this?</p>