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

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -