visiblity taking element, element array or jquery selection