Say I want to set a style to a class, I would do this:
$head.append('<style>.class1{color:red}</style>');
However, is there any way that I can set it without adding <style>
tags? Is there anything like this:
$('.class1').addStyle('color','red');
I know people would use
$('.class1').css('color','red');
But this would only update the created elements. It's not gonna apply to those newly created .class1
elements.