I have a div
that can be hidden when you click a button:
$(".fechar").click(function(){
$("#mensagem").hide();
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script><divid="mensagem">
<p>(...)</p>
<button class="fechar">Fechar e não mostrar novamente</button>
</div>
What I need is for it to no longer appear after being hidden for the first time.
I found a form with Jquery dialog , but it does not allow me to customize it right away, at least not in a simple way, so I need it and I prefer it to be like this.
How do I memorize this action in the localStorage?