About 55 results
Open links in new tab
  1. Easiest way to toggle 2 classes in jQuery - Stack Overflow

    Aug 9, 2011 · Learn how to toggle between two CSS classes in jQuery with simple and effective methods.

  2. Toggle multiple element classes with jQuery - Stack Overflow

    Toggle multiple element classes with jQuery Asked 14 years, 9 months ago Modified 2 years, 6 months ago Viewed 75k times

  3. jQuery onclick toggle class name - Stack Overflow

    jQuery onclick toggle class name Asked 12 years, 9 months ago Modified 5 years, 1 month ago Viewed 224k times

  4. javascript - ToggleClass animate jQuery? - Stack Overflow

    Jun 4, 2016 · 8 I attempted to use the toggleClass method to hide an item on my site (using visibility:hidden as opposed to display:none) with a slight animation, but for some reason the …

  5. jquery - difference between toggleclass and addclass - Stack Overflow

    Mar 20, 2013 · I am working with jquery and attempting to add a class to a table on the selection of that table row. I was initially using the following code - $(this).parents("tr").toggleClass("over", this.cl...

  6. jQuery add/remove class or toggle class - Stack Overflow

    Feb 13, 2017 · But as of using toggleClass vs add and remove, it depends on the initial state of your class and the desired outcome. Toggle will switch it on and off regardless of what you want.

  7. Switching between two different classes jQuery - Stack Overflow

    Dec 7, 2013 · 4 Just use the toggleClass twice will do the magic. toggleClass reference to jQuery: This method takes one or more class names as its parameter. In the first version, if an element in the …

  8. jquery - toggleClass and remove class from all other elements - Stack ...

    How can I toggleClass and remove class from all other elements? Consider a div that contains a tags: html:

  9. javascript - toggleClass with delay - Stack Overflow

    Feb 16, 2016 · In this stackoverflow post the accepted answer claimed that it is possible to use toggleClass with a delay. But i did not find any information about a delay parameter on the official …

  10. javascript - jquery toggleClass not working - Stack Overflow

    Mar 19, 2016 · $(this).toggleClass("active"); Also, I find it most useful to specify exactly what I want added/removed at any given time. In other words, I try only to use addClass() and removeClass(), …