How do we create disable links in the NAV components ?

 Posted by Vivek.Ramapuram on 6/10/2015 | Category: Bootstrap Interview questions | Views: 3268 | Points: 40
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 

Comments or Responses

Login to post response