This question has already been answered:
- Jquery and pseudo-class: after 2 replies
I write the code of such a plan but it does not work.
$(".mapopen").click(function() { $(".top_rightmenu ul li a:after").hide(); }); This question has already been answered:
I write the code of such a plan but it does not work.
$(".mapopen").click(function() { $(".top_rightmenu ul li a:after").hide(); }); A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .
:after is a pseudo-element, you will not be able to influence it directly from the code, only through the parent element
$(".mapopen").click(function() { $(".top_rightmenu ul li a").addClass('hide-after); }); And in the css list
.top_rightmenu ul li a.hide-after:after {display:none}` To return :after just remove the class from the link
.toggleClass('hide-after); instead of .addClass('hide-after); - Vitaliy EmelyantsevSource: https://ru.stackoverflow.com/questions/563628/
All Articles