[eluser]alexaaaaaaaaaa[/eluser]
don't use $_post use $this->input->post('field_name');
here's a simple example on how to do it
$(document).ready(function() {
$("a.link_class").click(function (event) {
event.preventDefault();
if (confirm('Are you sure? ')){
var del_id = $(this).attr('id');
$.post("index.php/Dashboard/delete_goal", {item_id : del_id}, function(data){
// succcess??
}); }
}); });
//here's the loop foreach ($whatever as $me)
{
<?= anchor('#', 'Delete', array('class' =>'link_class', 'id'=>$something->id)); ?>
}