Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Class disabled not working <li> tag

i write a class disabled in li tag show disabled style but click the menu is run

<li class=" disabled"> <a class="ajax-link" href="#"><i class="glyphicon glyphicon-align-justify"></i><span> List Services</span></a></li>

why the menu inactive in class disable any way to disable the menu in this condition ,please help me, thanks in advance

like image 485
Andrew Avatar asked Feb 03 '26 22:02

Andrew


2 Answers

CSS:

.disabled {
    pointer-events:none; //This makes it not clickable
    opacity:0.6;         //This grays it out to look disabled
}

add this to solve that issue !!!

like image 159
Andrew Avatar answered Feb 05 '26 12:02

Andrew


The element is never the target of mouse events; however, mouse events may target its descendant elements if those descendants have pointer-events set to some other value.

Use this code:

.disabled a {
   pointer-events:none; 
   opacity:0.6;
}
like image 35
Sereda Avatar answered Feb 05 '26 10:02

Sereda