Answers for "check if input is empty css"

CSS
2

check if input is empty css

/* If input is not empty */
input:not(:placeholder-shown) {
  /* You need to add a placeholder to your fields. For example: <input "placeholder=" "/> */
  border-color: green;
}

/* If input is empty */
input:placeholder-shown {
  border-color: red;
}
Posted by: Guest on October-27-2020

Code answers related to "check if input is empty css"

Browse Popular Code Answers by Language