css detect if input has value

Solutions on MaxInterview for css detect if input has value by the best coders in the world

showing results for - "css detect if input has value"
Kane
29 Aug 2020
1input:not(:placeholder-shown) {
2  border-color: green;
3}
4
5input:placeholder-shown {
6  border-color: red;
7}