Answers for "how to change input field border color on focus"

CSS
5

change border highlight color on an input text element

input:focus { 
    outline: none !important;
    border-color: #719ECE;
    box-shadow: 0 0 10px #719ECE;
}
textarea:focus { 
    outline: none !important;
    border-color: #719ECE;
    box-shadow: 0 0 10px #719ECE;
}
Posted by: Guest on May-21-2020
0

How to change border color of textarea input on :focus

.input:focus {
    outline: none !important;
    border:1px solid red;
    box-shadow: 0 0 10px #719ECE;
  }
Posted by: Guest on September-01-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
-1

focus on input change label color

.input-group {
    display: flex;
    flex-direction: column-reverse;
}

input:focus + label {
    color: red;
}
Posted by: Guest on January-02-2021

Code answers related to "how to change input field border color on focus"

Browse Popular Code Answers by Language