title: codeigniter change content without refresh page by clicking anchor
body: <p>I need to change only my webpage content without refreshing the page,</p>
  
  <p><strong>view</strong></p>
  
  <pre><code>&lt;a href="&lt;?php echo site_url('site2/getBranchDetails/'.$row_bank-&gt;branch_id.''); ?&gt;"&gt;&lt;?php echo $row_bank-&gt;bank;  ?&gt;&lt;/a&gt;
  </code></pre>
  
  <p>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,</p>
  
  <p><strong>controller</strong></p>
  
  <pre><code> public function getBranchDetails($b_id){
          $this-&gt;load-&gt;model('bank_account_model');
          $data['results'] = $this-&gt;bank_account_model-&gt;getAccount($b_id);
      }
  </code></pre>
  
  <p>and data in the result array should be view in the view content,I need ajax soution</p>