Hello guys i was wondering how would I edit this using JavaScript DOM?
<div class="player-column" style="width: 675.556px;"></div>
I'd prefer a method using
document.querySelector(".player-column")
(i want to edit the width of the style btw)
Hello guys i was wondering how would I edit this using JavaScript DOM?
<div class="player-column" style="width: 675.556px;"></div>
I'd prefer a method using
document.querySelector(".player-column")
(i want to edit the width of the style btw)
Quite simple:
document.querySelector(".player-column").setAttribute("style","width:900px");