I am attempting to accomplish the following:
By clicking on a specific DIV, I want to add or remove a CSS class from another DIV.
Check out this live example (and click on "click me"):
http://jsfiddle.net/fyehLqsc/
$(document).ready(function() {
$(".mejs-play").click(function () {
$(".spin-l").toggleClass("animated");
$(".spin-r").toggleClass("animated");
});
});
The functionality is correct on JSFiddle, but when I implement it on my WordPress site, it's not working.
See here for an example:
link removed
My goal is to have the class "animated" added to "spin-l" and "spin-r" when someone clicks on the play button with the class "mejs-play".
Could anyone explain why it works on JSFiddle but not on my site?