Answers for "how to make input border red"

CSS
0

html input type colour internal border

input::-webkit-color-swatch {
    border: none;
}
Posted by: Guest on March-26-2021
0

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
Posted by: Guest on January-20-2021

Code answers related to "how to make input border red"

Browse Popular Code Answers by Language