Questions tagged as 'jquery-toggleclass'

3
answers

Problem with hover event in Firefox

The next code is to use the hover event in the first image and change the second class. But after testing, it did not work on the Firefox browser, running only on Chrome, Safari and Opera browsers. Here is an example of the code: HTML...
asked by 27.10.2015 / 10:59
2
answers

ToggleClass is not working

I'm trying to create a list of elements with elements hidden inside each li tag. When you click the li, the hidden elements appear, but when I click again they do not close. This is the JS code: $('.box-content-minhas-ofertas .offer-list')....
asked by 15.03.2018 / 00:10
1
answer

How to control individual classes in jQuery?

I recently created this HTML document: <div class="wrap"> <div class="container"> <a class="button" href="#" title="Abrir as opções."></a> <div class="option-box"> <ul> <li>...
asked by 15.10.2014 / 21:12
1
answer

SlideToggle on left side with icon

I have the following code: HTML: <div id="slideleft" class="slide"> <button type="button" class="btn-event">ICON</button> <div class="inner" style="left: -338px;">Efeito lateral de toogle. </div> <...
asked by 08.05.2015 / 22:51
1
answer

How to set the speed of toggleClass (jquery)?

I would like to set the animation speed of toggleClass but it did not work. I solved the problem with CSS : -webkit-transition: all .5s ease; transition: all .5s ease; However, I would like to know what it would look like jQ...
asked by 04.02.2017 / 16:32
1
answer

Execute a function on two different elements without affecting each other

Clicking the "View More" button needs to make the div containing the post text expand, if it affects the div on the side. I tried to use toggleClass() however the two open at the same time, or using an id only the first one opens. jsj...
asked by 23.05.2016 / 19:50