title: In CodeIgniter, how to display a view page in a particular div element
body: <p>This is how I'm calling my dashboard view from controller. I want to display some page (e.g. the index page) in the div element instead of it opening in a new tab.</p>
  
  <pre class="lang-php prettyprint-override"><code>public function index() {
      $this-&gt;load-&gt;view('index');
  }
  
  public function dashboard() {
      $this-&gt;load-&gt;view('dashboard');
  }
  </code></pre>
  
  <p>I got stuck in the UI part on a project using CodeIgniter. I need to display a view page inside a div element, but instead of displaying in the div either it is getting displayed in the new tab or nothing is working.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
    $('.aboutus').click(function(){
       $('#about').load('controller/method');
    });
  &lt;/script&gt;
  </code></pre>