Is it safe to use :after-selector with jquery= -


this question has answer here:

i want trigger function when clicking :after

for example

.foo:after{     content: "read more"; }   $('foo:after').click(myfunction); 

will cause fuzz?

you cannot detect or trigger events on pseudo-elements not part of document object model.

also see only detect click event on pseudo-element


Comments

Popular posts from this blog

php - Global connection variable or new one every time -

c++ - protocol buffers - generate NON-inline accessors -