Change color of gradient based on user selection

I am trying to change the color of a gradient depending on user selection, I have everything working but I just don’t know how to change the gradient using the format I have. (change.style.background = "linear-gradient(90deg, color1, red)";). const len = document.querySelectorAll(“input”).length; let change = document.querySelector(“.body”); for (let x = 0; x < len; x++)… Read More Change color of gradient based on user selection