bootstrap : unable/disable <a> link bootstrap using javascript
button, hyperlink, twitter-bootstrap
Solution
HTML
<a href="#" id="myLink" class="btn btn-large">Link</a>
Pure JS
var d = document.getElementById("myLink");
d.className = d.className + " disabled";
jQuery
$('#myLink').addClass('disabled');
Problem
this is an active link ``` <a href="#" class="btn btn-large">Link</a> ``` how to disable this link using javascript, so the code would be like this? ``` <a href="#" class="btn btn-large disabled">Link</a> ```