javascript - How to change the span display style, while changing the innerHTML of that span -


<span id="spnref" style="display:none"></span> 

i want make span visible now. how can change span display style, while changing innerhtml of span?

document.getelementbyid("spnref").style.display = "block"; 

Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -