[Solved] How to change color of products on a website? [closed]


Assuming you need this for a website, You can easily do it with a bit of HTML and Javascript.

<div id = "clothes">
    <img src="#" id= "clothing">
    <button onclick= "change()">Click here</button>
    <button onclick = "change2()"> Click here</button>
    <button onclick = "change3()"> Click here</button>
</div>

Now for your Javascript do:

function change(){
  clothing.src = "#"; 
}
function change2(){
  clothing.src = "#"; 
}
function change3(){
  clothing.src = "#"; 
}

For more information about functions see here

Hope this helps!

0

solved How to change color of products on a website? [closed]