I have a navigation bar as below:
<ul class="nav nav-tabs">
<li role="presentation" class="active"><a href="{% url 'list_view' %}">List View</a></li>
<li role="presentation"><a href="{% url 'table_view' %}">Matrix View</a></li>
</ul>
Actually its a django template. What I need to achieve is whenever the user select a navigation option, user can clearly see which one he selected. Means the active must change to the selected option. But currently its defaulted to the first navigation option. How can I change that? Thanks in advance.