Jquery/bootstrap disable button
<p>Hey iv been looking for a solution using JQuery or by modifying the twitter bootstrap class to prevent a button from performing its onclick action aka disabling it. However the results iv found so far have not performed correctly and mostly only give an appearance of being disabled but still perform correctly:</p>

<pre><code>$("#previous").prop('disabled', true);
$("#next").prop('disabled', true);
</code></pre>

<p>The purpose is to prevent swapping tabs when the tab index is too high or too low. Most other solutions seem to contain huge amounts of what is seemingly unnecessary Javascript for a feature that seems relatively simple.</p>

<p>Such as this :</p>

<pre><code>$("#previous").click(function() {
  var me = $(this);
  me.unbind( "click");            
})
</code></pre>

<p>Which is supposed to remove the bound function, however would mean also reattaching the event when the tab index increases. Is there a simpler solution available to temporarily disable a button or just prevent the default action from being carried out without removing the event or not displaying the button element?</p>

<p>Any help would be appreciated :)</p>