I'm using HTML5 Canvas in a Django/Python project with HTML templates.
I don't know how to dynamically set the "nav-link active" class in nav-pills.
Would you help me?
<ul class="nav nav-pills">
{% for categ in categlista %}
<li class="nav-item">[{{ categ.title }}]({% url 'url_postlista' categ.id %})
{% endfor %}At this way above all nav-items are "active" and I need that only the clicked item be "active".
