With css you can get the anchor
(text), but getting the li
that wraps it will be difficult (or impossible?).
li[role="menuitem"] a.selected { border-bottom: 2px solid blue; }
If you can use jquery, this will work:
$("a.selected").closest("li").css("border-bottom", "2px solid blue");
manpreet
Best Answer
2 years ago
In my .aspx file there is 5 MenuItems and 5 views respectively. What I want I am explaining below: On page load view1 will be enabled and there will be a border-bottom on MenuItem1. If I click MenuItem2 then View2 will be displayed and there will be a border-bottom on MenuItem2. Same things will happen to other menuitems and views also.
Here is my .aspx file: