Not sure if I need the JS forum, but here goes...
I have an element which is display:none; using CSS.
However if i then display the style setting for the element with JavaScript it shows as ''
Even if the element is set to display:block; with CSS Javascript shows it as undefined.
So it seems the JS collection of info on the DOM is not changed / set by CSS, is this correct and how do you get round this problem?
Cheers,
1DMF
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!
I have an element which is display:none; using CSS.
However if i then display the style setting for the element with JavaScript it shows as ''
Even if the element is set to display:block; with CSS Javascript shows it as undefined.
So it seems the JS collection of info on the DOM is not changed / set by CSS, is this correct and how do you get round this problem?
Cheers,
1DMF
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!