I wanted to call a codeigniter controller method from within jquery as of now I am trying something like this but it isn't working could anyone help me out with this
$.ajax({type: "POST", url:"site/controller/method/",
success: function(){
alert("success");
},
error: function(xhr, textStatus, error){
alert(xhr.statusText);
alert(textStatus);
alert(error);
}
});