View Single Post
Old 01-23-2013, 04:26 PM   PM User | #2
xelawho
Senior Coder

 
xelawho's Avatar
 
Join Date: Nov 2010
Posts: 2,437
Thanks: 52
Thanked 454 Times in 452 Posts
xelawho will become famous soon enoughxelawho will become famous soon enough
getElementsByClassName returns a collection (even if there is only one item in that collection) which needs to be accessed by array methods.

So you would be better off trying something like this, I think:

Code:
var ele = document.getElementsByClassName('ss-footer')[0];
ele.style.display = "block";
xelawho is offline   Reply With Quote