Bootstrap 4 js collapse is working fine, but I am facing an issue. When I click to show a hidden div and then reload the page, clicking again reveals the previously hidden div when it should be hidden. Any suggestions for addressing this problem?
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
<li class="nav-item">
<a class="nav-link dropdown-btn" data-toggle="collapse" data-target="#cl" href="#">
<i class="material-icons" style="color : black;">content_paste</i>
<p>Client Section <span class="iconify" data-icon="zmdi-caret-down-circle" data-inline="false"></span></p>
</a>
</li>
<div id="cl">
<li class="nav-item">
<a class="nav-link" href="{% url 'client'%}">
<i class="material-icons" style="color : white;">content_paste</i>
<p>Client List</p>
</a>
</li>
</div>
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b9c9d6c9c9dccb97d3caf98897888f9789">[email protected]</a>/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>