:not(:empty) CSS selector is not working?

后端 未结 11 1104
我寻月下人不归
我寻月下人不归 2020-11-28 06:22

I\'m having a heck of a time with this particular CSS selector which does not want to work when I add :not(:empty) to it. It seems to work fine with any combina

11条回答
  •  天涯浪人
    2020-11-28 06:38

    This should work in modern browsers:

    input[value]:not([value=""])
    

    It selects all inputs with value attribute and then select inputs with non empty value among them.

提交回复
热议问题