I would like to change color from div class. I searched the net for some info, but it's not working for me.
I have css style class in which I have property background-color, and I want to change this property from JS file.
I want in class gmBox change background-color:, how I can do this, from JS file?
.gmBox {
vertical-align: middle;
padding: 10px;
margin: 5px;
background-color: yellow;
color: black;
font-size: 23px;
border-radius: 5px;
}
<div class="gmBox" id="gmType">GM12</div>