You cannot change the actual CSS class (well, but it is very difficult and against practice), but you can change it for everything that applies to this class:
$('.example').css('background-color', 'blue');
However, you can apply this CSS every time a new element of your type is generated. For example, after calling an AJAX script that retrieves data from another file:
$('#blah').load('script.php', function() { $('.example').css('background-color', 'blue'); });
You may also have an interval that will be reapplied to all elements for you, but in terms of performance, this is not recommended:
setInterval(function() { $('.example').css('background-color', 'blue'); }, 100);
My advice to you was to find another way to mark your changes as a second class, and use this class to make changes to your elements.
source share