How can I do to click on the div and stop displaying it? I'm using onClick but it's not running.
My div:
<div class='alert alert-danger aviso' role='alert' style='width: 20%;'>Falha ao carregar os dados!</div>
onClick:
$('.aviso').on("click", function () {
$('.aviso').hide();
}