$('thumbnail').toggleClass('pausing playing');
ToggleClass: Add or remove one or more classes from each element in the set of matched elements, depending on either the class’s presence or the value of the switch argument.
More Related Contents:
- Add and remove a class on click using jQuery?
- switch audio source with jquery and HTML5 audio tag
- jquery .slideToggle() horizontal alternative?
- html5 audio player – jquery toggle click play/pause?
- Can I open a dropdownlist using jQuery
- iframe to Only Show a Certain Part of the Page
- How to set data attributes in HTML elements
- How to automatically change the text size inside a div?
- jQuery html() in Firefox (uses .innerHTML) ignores DOM changes
- Activate CSS3 animation when the content scrolls into view
- Store JSON object in data attribute in HTML jQuery
- Jquery datepicker restrict dates in second date field based on selected date in first date field
- jQuery toggle CSS?
- Jquery click event not working after append method
- Button text toggle in jquery
- current/duration time of html5 video?
- How to bind to localStorage change event using jQuery for all browsers?
- HTML 5 – Play file at certain time point
- Selecting only first-level elements in jquery
- get html of external url in jquery
- How to make Bootstrap carousel slider use mobile left/right swipe
- What’s the difference between class and id in jQuery?
- Google Map v3 auto refresh Markers only
- Run JQuery in the context of another frame
- HTML5 textarea placeholder not appearing
- Merge values from two forms on submit
- Get index of selected option with jQuery
- How to load external html into a div?
- Sliding divs horizontally with JQuery
- change the href of a css link via jquery