html:
This is what I have
<div class="one"> Apple </div>
I want to add the word "juice" using javascript .style
. Is there a equivalent to :: after
where I can set the content in javascript using .style.after = "juice"
?
<div class="one"> Apple Juice </div>
js:
document.querySelector('.one').style.display ="inline";
document.querySelector('.one').style.marginLeft ="2px";
document.querySelector('.one').style. =