I\'ve got a class with the display set to none I\'d like to in Javascript now set it to inline I\'m aware I can do this with an id wit
none
inline
id
Do you mean something like this?
var elements = document.getElementsByClassName('hidden-class'); for (var i in elements) { if (elements.hasOwnProperty(i)) { elements[i].className = 'show-class'; } }
Then the CSS
.hidden-class { display: none; } .show-class { display: inline; }