Here is a code snippet that was provided by skobaljic, which adds a title to a class within a div element:
$(document).on('ready', function() {
$("[title*='animotion']").addClass(function(){
$(this).parent().css('overflow','visible');
return $(this).attr('title');
}).removeAttr('title');
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<p><img src="http://placehold.it/350x150" title="animotion newClass new1" /></p>
Is there a way to add these new classes to style.css using jQuery?