Consider this jQuery function as an example:
function demo(){
var trigger = $('.image');
trigger.each(function(e){
// In this section, I aim to modify the background color of the :after pseudo-element
$(this:after).css('background-color', 'red');
// ^ The code above does not produce the desired effect
});
}
Is there a way to adjust, replace, or delete CSS properties for a pseudo-element within $(this)
?