Greeting StackOverflow! I am trying to pass data to controller using AJAX, but for some reasons it doesn\'t.
Controller:
public function updateSocial
Try this..
You can send data to server by data option in ajax and the type which defines. The default type is GET method
Use " data: {name:name,address:address},"
$.ajax({
type: "GET",
url: "controller/updatesocial",
data: {name:name,address:address},
dataType: "text",
cache:false,
success:
function(data){
alert(data); //as a debugging message.
}
});