how to color input border code example
Example 1: html input type colour internal border
input::-webkit-color-swatch {
border: none;
}
Example 2: how to change input border color with js
document.getElementById("fName").className = document.getElementById("fName").className + " error"; // this adds the error class
document.getElementById("fName").className = document.getElementById("fName").className.replace(" error", ""); // this removes the error class