I made a if
, if something comes back, then it mounts a page, otherwise it should hide everything and display a message. Not an alert, but a message on the page itself. In my else I just hide a div and a form. This is okay. Just do not know how to generate a message, type a <h1>Mensagem</h1>
, type this, not necessarily this, but something like that. See my else
as is:
else
{
$("#selecionarHotel").css("display","none");
$("#filtroPesquisa").prop("hidden", true);
}