Hello,
I have this code to try and call a method from my controller in codeigniter,
$("#Blog").click(function () {
var url = $(this).attr("href");
$.ajax ({
url: "index.php/home/category",
type: "POST",
success : function (html) {
$("#right-content").append(html);
}
});
});
The ajax does not seem to be getting fired, is there something that I am missing, the #Blog represents the ID of a link in my navigation menu, all that happens is the link works as normal.
Someone please help :-(