You cannot use jquery to change the styles of psuedo classes as you cannot select them, but you can inject a new style element into the head to change them
HTML
<div class="container">
Container
</div>
JS
var redAfter = jQuery('<style>.container:after{border:1px solid #F00; }</style>');
var blueAfter = jQuery('<style>.container:after{border:1px solid #00f; }</style>');
jQuery("#change1").click(function(){
blueAfter.remove();
jQuery("head").append(redAfter);
});
jQuery("#change2").click(function(){
redAfter.remove();
jQuery("head").append(blueAfter);
});
Fiddle Demo
I do not know if this would cause any issues performance wise. It might if you have a lot of pseudo elements that you need to change etc. I think keeping an object of the style so you can remove them when not needed might be good though. Also not sure how cross browser compatible this is, works in chrome.
Probably should change your code to use actual objects instead of pseudo ones if possible.