I'm trying to change the colour of an :after, using JQuery although I just can't seem to be able to change it, can anybody point me in the right direction please?
<script>
$( document ).ready(function() {
$( ".breadcrumb li:nth-child(1) a" ).css({'background-color' : '#f00'}); // Works
$( ".breadcrumb li:nth-child(1):after " ).css({'background-color' : '#f00'}); // Does not work?
});
</script>
I've tried using a few selectors but I just cannot find the correct one. Thanks in advance.