I have an element with display property set to none. I want to use javascript to return this display property. The code I'm using returns nothing or NULL when it should return "none". This is the code i'm using:
element CSS
.element
{
display:none;
}
javascript
function get_display_status()
{
var element = document.getElementById('elementID');
var status = element.style.display;
document.write(status);
}
Result: Current status: ""
Image : http://gyazo.com/f662fd257602e973ca329a25314fb6ab
Any workarounds to this? Thanks