title: jQuery increase/decrease number when checking boxes
body: <p>So I have this code:</p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;input type=checkbox class="checkbox" /&gt;
  &lt;input type=checkbox class="checkbox" /&gt;
  &lt;input type=checkbox class="checkbox" /&gt;
  &lt;input type=checkbox class="checkbox" /&gt;
  
  &lt;div class="number"&gt;
      hello
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>JS</strong></p>
  
  <pre><code>var increment2 = 1;
  $('.checkbox').live('click', function() {
      $('.number').html( '(' + increment2 + ')');
      increment2++;
  })
  </code></pre>
  
  <p><a href="http://jsfiddle.net/P3zMu/5/" rel="nofollow">http://jsfiddle.net/P3zMu/5/</a></p>
  
  <p>It increments the number when checkbox is clicked, as can be seen in the example. The issue is to increase the number when checkbox is checked and decrease when the checkbox is unchecked. Will be very greatful for any help.</p>