I need to change only my webpage content without refreshing the page,
view
<a href="<?php echo site_url('site2/getBranchDetails/'.$row_bank->branch_id.''); ?>"><?php echo $row_bank->bank; ?></a>
this link is on my nav bar,when I click this link I need to change content, there need to pass id to my controller,
controller
public function getBranchDetails($b_id){
$this->load->model('bank_account_model');
$data['results'] = $this->bank_account_model->getAccount($b_id);
}
and data in the result array should be view in the view content,I need ajax soution