I'd like to add animation for my div to disappear, I was looking at this topic Hide div when you click on it , but it did not resolve because my version of JQuery is more up-to-date.
Button:
<button type="submit" class="btn btn-success" onclick="Mudarestado('oculto')">Importar</button>
Code:
<script>
$('#aviso').on("click", function () {
$(this).hide("slow");
});
function Mudarestado(el) {
var display = document.getElementById(el).style.display;
if (display == "none")
document.getElementById(el).style.display = 'block';
else
document.getElementById(el).style.display = 'none';
}
</script>