From the jsFiddle, you'll see that the next added element doesn't have the new attribute. MORE: I'm just using the color for a basis, I will implement this in larger scale, what I want to accomplish is to dynamically change the attributes of a
Establishing a color in your CSS prior to it being added would do the trick. Then changing that classes color later would change the badger-left with the new class badger-change. CSS /* Change style dynamically according to the bg-color attribute added to
I have three set of columns. Each column having a different kind of data attribute name with integer value. The data attribute name value will change incremently 500 based on length of div.
Post a Comment:
Showing 0 Comments: