Thursday, July 4, 2019

javascript - Change CSS rule in class using JQuery

You should be selecting an element with jQuery. You're aware that you aren't selecting the CSS class itself, correct?


Once you have an element with class="Foo", you can select it as you have, and either set css properties manually like you're trying to do, or you can use add class like so:



$(".Foo").addClass('Foo');


Granted of course, since you're selecting the same class that you're adding, it doesn't really make sense.

No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...