I am trying to get display
attribute about an element using style.display
. But its not returning anything.
Have a look at the JsFiddle one.
There is nothing in the alert window.
UPDATE
Now I just noticed something unusual. Whenever I define the properties inline then things do work. But when I apply style in any other method, then its not working.