I have searched the forum for related threads, but the solution I came across do not work.
I use Bootstrap to display a tabgroup with two tabs. I need Tab 1 to be automatically active from Monday to Friday and Tab #2 to be active Saturday to Sunday.
Here's my HTML:
<ul class="cat_filter nav nav-tabs right" role="tablist">
<li role="presentation" class="active"><a href="#tab1" aria-controls="tab1" role="tab" data-toggle="tab">Tab #1</a></li>
<li role="presentation"><a href="#tab2" aria-controls="tab2" role="tab" data-toggle="tab">Tab #2</a></li>
</ul>
<div class="tab-content">
<div id="tab1" role="tabpanel" class="tab-pane fade in active woocommerce">Some content</div>
<div id="tab2" role="tabpanel" class="tab-pane fade woocommerce">Some content</div>
</div>
I have already tried the following threads but they don't work for me: Weekday jQuery UI Tabs open on current day load correct day of the week inside accordion gallery