How can select ::placeholder with ::after?

How can select ::placeholder with ::after?
0

#1

To add content for placeholder text in :focus?

Thanks.


#2

I’m curious. What are you trying to do? You’ve got placeholder, after, and focus.


#3

The placeholder text can’t be in the element created in ::after, so you can’t select it using that (::after defines an element created in CSS). ::placeholder is a pseudo-element, like ::after, a different one.

.my-input:focus::placeholder, anyway.