i am new to codeigniter, i was created some list of records from database , my problem is if i want to delete the more record using checkbox , i was get the array value as string format from jquery, but i dont know how to send this value to controller , please tell anyone
my jquery code multi select record
$('.del_mybuyer').click(function(){
        var selected = new Array();
        var inc = 0;
        $('input.selbuyer:checked').each(function(){
                selected[inc] = $(this).attr('id'); 
            inc = inc + 1;
        })      
        tdelbuy=selected.toString();                
    })
here the tdelbuy was working fine, but i dont know how to set this in session or how to send this to my controller, please tell any one
use $.ajax, $.post, or $.get
try this
  $.post('path/to /your/controller',{data:tdelbuy},function(html){
        alert(html);
  });    
and your controller get the posted value by
 var postedValue=$this->input->post('data'); 
 //do your stuff.
 echo "done";
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With