title: Codeigniter 2.1, Jquery - delete all checkboxes checked
body: <p>At the moment, I am confused by this problem. How can I delete all files that have been checked?
  This is the function to select or unselect checkboxes:</p>
  
  <pre><code>var del_selected = $('.zute_strane_izmena_obrisi_sve'),
  del_url = del_selected.attr('href'),
  selektuj_sve = $('.zute_strane_izmena_selektuj_sve'),
  slike = $('.zuta_strana_trenutne_slike'),
  box = slike.find(':checkbox'),
  selektovane_slike = [];
  
      selektuj_sve.on('click', function(){
          $(this).text(box.is(':checked') ? 'Selektuj Sve Slike' : 'Deselektuj Sve Slike');
          box.attr('checked', !box.is(':checked'));
      });  
  </code></pre>
  
  <p>Jquery for now (it is working without error):</p>
  
  <pre><code>del_selected.on('click', function(e){
  
      box.filter(':checked').each(function(){
          selektovane_slike.push($(this).val());
          $(this).parent().slideUp('fast');
      });
      data = JSON.stringify(box.serializeArray(), null, 2);
  
      console.log(data);
      e.preventDefault();
  });
  </code></pre>
  
  <p>Where to go from here?</p>