I have a button that hide and show html div
<button id="hideshow" title="Click to Show/Hide Assessment"></button>
This is the script
$(document).ready(function(){ /// hide and show button
$('#hideshow').click(function() {
$('#containerDiv1').toggle("slideLeft");
$("i", this).toggleClass("fas fa-lg fa-chevron-up fas fa-lg fa-chevron-down");
});
});
Now I want to achieve is when the user choose to hide the div and click the button, when he reload the page it should be still hide. Because by default my div is on show when my webpage is open.
any help??