Hide elements by clicking outside
<p>I have some problems hiding my elements which are in an array. I put all elements to hide in an array which I loop through with <code>.each()</code>. But somehow the elements do not disappear :/</p>

<p>Here is my code:</p>

<pre><code>$('html').bind("click", function(e) {
            var hiddenElements = ['#loginContainer'];

            $.each(hiddenElements, function(index, value) {
                $(value).hide();
            });
        });
</code></pre>
