Let's say I have a class ".someClass":
.someClass {
display: none;
}
Then in javascript code the div is created and then the class is applied for the div:
var myDiv = document.createElement("div");
myDiv.className = "someClass";
Is it possible now to check if "myDiv" has the style "display: none" or not without appending it to the web page?
Or is the only way to test the "display" property is to append "myDiv" to the page, then quickly check "$(myDiv).css('display')" and then remove it from page?
Thank you, really appreciate help.