Checking if an input is empty with CSS

added by JavaScript Kicks
12/19/2018 8:00:40 AM

267 Views

Is it possible to know if an input is empty with only CSS? I had that question when I tried to make an autocomplete component for Learn JavaScript. Basically, I wanted to: 1. Hide a dropdown if the input is empty 2. Show the dropdown if the input is filled


0 comments