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 .each(). But somehow the elements do not disappear :/
Here is my code:
$('html').bind("click", function(e) {
var hiddenElements = ['#loginContainer'];
$.each(hiddenElements, function(index, value) {
$(value).hide();
});
});
Instead of using
eachloop you can even try this.