Answer: In order to disable links of any Nav components, Bootstrap provides disabled class.
Example :
<ul class="nav nav-pills">
<li class="active"><a href="#">Home</a></li>
<li><a href="#">User</a></li>
<li><a href="#">Settings</a></li>
<li class="disabled"><a href="#">Admin</a></li>
</ul>
we have given disabled class to the Admin element.
Run the the code in the browser.
Asked In: While Learning |
Alert Moderator