title: new to jquery/javascript i was try to find an inverse to this function
body: <p>my original script is this</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  jQuery(document).ready(function(){
  $("#rad1 :checkbox").click(function() {
         $("div.abc1").hide();
         $("#rad1 :checkbox:checked").each(function() {
             $("." + $(this).val()).show();
         });
      });
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>Which was made thanks to an answer by the user nnnnnn <a href="https://stackoverflow.com/questions/8796472/filtering-with-checkboxes-using-jquery">here</a></p>
  
  <p>and as i stated in the title i was looking to invert the operation 
  ie. show everything and then hide all the elements that are not what is selected</p>
  
  <p>after searching i found the :not() selector but i am having trouble implementing it</p>
  
  <pre><code>jQuery(document).ready(function() {
      $("#rad1 :checkbox").click(function() {
  
          $("div.abc1").show();
          $("#rad1 :checkbox:checked").each(function()  {
              $("." + (:not($(this))).val()).hide();
          });
      });
  });
  </code></pre>
  
  <p>any help would be greatly appreciated.</p>