Menu
I have a bunch of elements formed this way:
[code=html]<p class=”T”>some text</p>
and some css:
[CODE].T:after { position:relative; visibility:hidden; content: ” more text.” }
Having trouble accessing “T:after” to change the visibility. Something like:
[CODE]
var elT = document.getElementsByClassName(“T”)
function changeT() {
for (i=0; i<elT.length; i++) {
if (elT.item(i).firstChild:after.style.visibility == “hidden”) {
elT.item(i).firstChild:after.style.visibility = “visible”) }
}
}
Any suggestions?