How can i select the pseudo class :after
of this
?
I try
$( this ).find( ':after' ).css("display","block");
but it didn't work !
How can i select the pseudo class :after
of this
?
I try
$( this ).find( ':after' ).css("display","block");
but it didn't work !
There isn't a way to select pseudoclass directly in jQuery as it isn't a part of DOM
You can append the <style>
though:
$('head').append('<style>element:before{ /* apply styles here */ }</style>');