5 ms·:empty is for elements with no children, not empty value.by vilmosi 9y ago:empty is for elements with no children, not empty value.uitgewis 9y agoYou could potentially use the validation rules, and set a min length of 1.KwanEsq 9y agoYou'd need [required] instead of [minlength] for :valid to work. The other option is :placeholder-shown, to style no-input normally, but it's newer and not as supported.vilmosi 9y agoI wonder if the good old input[value=""] would work. Probably not if you have jQuery.bzbarsky 9y agoNo, because that matches on the HTML attribute (aka the defaultValue property in JS), not on the current value of the input.