I have a bunch of elements formed this way:
and some css:HTML Code:<p class="T">some text</p>
Having trouble accessing "T:after" to change the visibility. Something like:Code:.T:after { position:relative; visibility:hidden; content: " more text." }
Any suggestions?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") } } }


Reply With Quote

Bookmarks