I'm working on one of my Django Project(currently it's only able to Registered user and get them logged in). but the problem that I have facing is that when users provide incorrect data while registering(like password1 does not match with password2 etc.) the in-built error messages (provided by Django Framework) popping up on my landing page and even after refreshing the page its still reflect there.
is there any way to clear them? (using Js or any other in-built mechanism)?
`
{% if messages %}
{% for message in messages %}
<article class="container message is-small" id="msgcontainer">
<div class="message-header">
<p>Message</p>
<button class="delete" id="msg-btn" aria-label="delete"></button>
</div>
<div class="message-body">
<p>{{ message }}</p>
</div>
</article>
{% endfor %}
{% endif %}
`
I have try using js to get rid of those messages after popping up, but its not working that way.