I have a li
with id buscaBT
, when I click on it, it leaves a div within that li
( formularioBusca
) as display:block
, so far, quiet, everything working. I did so:
$( "#buscaBT" ).click(function() {
$( '.formularioBusca' ).css('display','block');
});
My question is: I want it when the person moves the mouse outside of that div, it closes.