title: jquery uncheck back the checked box
body: <p>here is a piece of copied code and i made some changes. the thing is that i just wanted  to    know how do i uncheck back the checked box which before uncheck all the checked boxes.
      Below is the code:</p>
  
  <p>#html#  </p>
  
  <pre><code>&lt;html&gt;
  &lt;table id="tab1"&gt;&lt;tr&gt;&lt;td&gt;   
  &lt;input type="checkbox" name="book" id="book" value="book1" class="check"&gt;book1
  
  &lt;input type="checkbox" name="book" id="book" value="book2" class="check"&gt;book2
  
  &lt;input type="checkbox" name="book" id="book" value="book3" class="check"&gt;book3
  
  &lt;input type="checkbox" name="book" id="book" value="book4" class="check"&gt;book4 
  
  &lt;input type="checkbox" name="book" id="book" value="book5" class="check"&gt;book5 
  
  &lt;input type="checkbox" name="checkAll" id="checkAll" class="uncheckall"&gt;to uncheck
  &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>#Jquery#  </p>
  
  <pre><code>$('#tab1 .uncheckall').click(function(){
  if($('.uncheckall').is(':checked')){
      $('.check').prop('checked', false);
  }  
  else {
      $('#tab1 .check').click(function(){
          $('.unckeckall').prop('checked', false);
      }); 
  
  }
  
  });
  
  How to uncheck the 'touncheck' box when other remaining boxes are checked back?
  you can check here [http://jsfiddle.net/420/pzCcE/345/]
  </code></pre>