How can I add class active to li a current day of the week?
<ul class="nav nav-tabs nav-justified responsive" id="myTab">
<li class="active"><a href="#resp-tab1">Monday</a></li>
<li><a href="#resp-tab2">Tuesday</a></li>
<li><a href="#resp-tab3">Wednesday</a></li>
<li><a href="#resp-tab4">Thursday</a></li>
<li><a href="#resp-tab5">Friday</a></li>
</ul>
If you add
activeto the root<ul>element, all children will inherit theactiveclass.You can do
to only select
lielements with the classactivein your CSS.