Answers for "css detect if input has value"

CSS
0

css detect if input has value

input:not(:placeholder-shown) {
  border-color: green;
}

input:placeholder-shown {
  border-color: red;
}
Posted by: Guest on August-02-2021

Code answers related to "css detect if input has value"

Browse Popular Code Answers by Language