I want to style my input field but somehow I have to detect if this input has placeholder attribute and if is actually filled. I would like to avoid JS stuff to do it, so my question is: Is there any css trick so i can target this specific selector?
Currently i have:
<input type="text" placeholder="">
input[placeholder] {
// my styles
}
but this applies styles anyway. Thanks for your help.