Is it possible to hide elements that are in an array, e.g.
var elements = ['.div-1', '.div-3'];
With a structure of:
<div id="wrap">
<div class="div-1"></div>
<div class="div-2"></div>
<div class="div-3"></div>
</div>
So div-2
should stay visible, while the elements that are in the array would be hidden by fadeOut
. Is this possible?