I have a problem on how to make my dropdown remain open after clicking and avoid closing after refresh.
Here's what I've done.
<button class="dropdown_btn">
<span>Sample</span>
</button>
<div class="dropdown-container">
<a href="sample.php">Sample 1</a>
<a href="sample.php">Sample 2</a>
</div>
<br>
<button class="dropdown_btn">
<span>Sample</span>
</button>
<div class="dropdown-container">
<a href="sample.php">Sample 1</a>
<a href="sample.php">Sample 2</a>
</div>
Jsfiddle Link: https://jsfiddle.net/Mandy201/7w8t2muc/