title: checkbox value array add and remove from array
body: <p>I have the following code that pushes check-box values to an array. I want to be able to remove the values from array if check-boxes are unchecked. Can anyone tell me how to do this.</p>
  
  <pre><code>var arr_sort = new Array();
  
  $(".sort").change(function(){
  
          $.each($("input[name='sort']:checked"), function() {
             arr_sort.push($(this).val());
          });
  
      });
  </code></pre>