I am trying to toggle the display of an :after
pseudo-element (ie.to show/hide it) using jQuery. I successfully toggled the display of a div, but want to do this now with :after
.
The :after
is being used to create the arrow on the box.
My attempt can be seen here: http://jsfiddle.net/beechboy707/7um9knxt/1/
Here is an extract from it showing the jQuery which is supposed to relate to the CSS selector:
$("#supportus-button-1").click(function () {
$(".supportus-button:after").toggle();
});