i'm new to codeigniter i can't not get data from the controller using the ajax request i think i do mistake in writing the url of the controller function in ajax call
here is the code of my ajax call
$(document).ready(function(){ $("#fname").focusout(function(){ // alert(); $.ajax({ url: "<?php echo base_url();?>/proposal/ajax_load", type: 'POST', success: function(result){ $("#div1").html(result); } }); }); }); Here is my controller
class Proposal extends CI_Controller { public function ajax_load() { return ("Hello"); } }