Bootstrap detect visibility of element
I have a span element that is toggled with a bootstrap class "hidden-xs"
I want to detect if it's visible in an onclick event. I've inspected the
style. display and style.visibility values and they are always empty. What properties are changed when the class is used?
html:
<span id="CommissionersTableHeadingFlagUp" class="hidden-xs glyphicon glyphicon-triangle-top"></span>
javascript:
var elemDisplay=document.getElementById('CommissionersTableHeadingFlagUp').style.visibility;
alert(elemDisplay+elem2Display);
Lyndon