title: How to disable redirecting when clicking on a button?
body: <p>I use Codeigniter and Bootstrap.</p>
  
  <p>I have a button:</p>
  
  <pre><code>&lt;a class="btn btn-success" id="btnid" href="http://site/controllerName/parameter"&gt;Text&lt;/a&gt;
  </code></pre>
  
  <p>If I click to the button its call a controller with one parameter then the controller redirects to a site.</p>
  
  <p>My question is that is there a way to call the controller with a parameter but skipping the redirection?</p>