I have tried getting the elements display attribute value and finding if the the element ID is visible but neither has worked. When I try .getAttribute it always returns null; I am not sure why because I know that id is defined and it has a display attribute.
Here is the code of the two different methods I have tried:
var myvar = $("#mydivID").is(":visible");
var myvar = document.getElementById("mydivID").getAttribute("display");
Display is not an attribute, it's a CSS property inside the
You may be lookig for
var myvar = document.getElementById("mydivID").style.display;
var myvar = $("#mydivID").css('display');