javascript change background color based on id code example
Example: how to change background color using js
var warning = document.getElementById("warning");
warning.style.background-color = "red";
var warning = document.getElementById("warning");
warning.style.background-color = "red";