I am using the jQuery function
function ShowHide(){
$(".login").animate({"height": "toggle"}, { duration: 1000 });
}
and the link to show hide the .login div is:
onclick="ShowHide(); return false;"
But this link only toggles the div to show and hide, but I want it to also hide when the user clicks off the div, I have a page wrapper in place but just need some help with jQuery.