Is there a way to make jQuery (or any javascript) change the CSS scheme instead of just apply the style to the current elements matching the descriptor?
Suppose I have this on my css .bla{ width: 200px;}
. if I run $('.bla').css('width', 300);
then jQuery will only apply this to the existing elements.
What I want is a way to make the new width be the rule also for new .bla elements. To make it so that, if I keep adding .bla elements, then they will be 300 width.
Is there a way to do this?