I am looking to dynamically change the background color of an element in CSS using JavaScript when a button is clicked.
Currently, my CSS code looks like this:
div.box {
width:100px;
height:100px;
background-color:#FF2400;
}
I want the background color to change dynamically to different options by clicking on multiple buttons, each representing a different color.