• Got a Tipila, google, windows live or facebook account ?

This is how to close an html element when outside is clicked.

.advanced-search-container is the div we need to hide

$(document).click(function () {
        $('.advanced-search-container').slideUp();
});
$(".advanced-search-container").click(function (e) {
        e.stopPropagation(); //stop the click event from propagating  
});
0
votes
Hi...!!!

Tipila is a site for programmers to save interesting things found on the web, as Tips.

No more wasting time by re-googling for things you've found but forgotten.

It's totally free...
Get started now

Login to Tipila