Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
1 answer
28 views

jQuery slideToggle current div and slideUp the rest divs that are visible

I am trying to build a FAQ page where there is a div, on click it should slideToggle another div inside of it for visibility. Once if it is clicked I want any other divs except this one, that are ...
Tibby's user avatar
  • 316
1 vote
1 answer
171 views

Jquery can't close div on click again

I am trying to close a div by clicking a button with SlideUp function. But when I click on button it opens as expected and closes other divs. But doesn't close it re-opens itself. Here is my html code ...
Eren GELGEC's user avatar
0 votes
3 answers
213 views

Close box by clicking out side of the box

I like to close box by cliking out side of the box. First 2 scripts are open/close and some decoration of button.They works fine. Now, on 3rd script, Im trying to close box by cliking out side of ...
cwhiro's user avatar
  • 133
2 votes
2 answers
263 views

How to make the screen follow the Slidetoggle

I have a list of question/answers divs: When I open an answer by clicking a question, all other answers close. <div class="question"> QUESTION 1 </div> <div class="answer"> ...
TB54's user avatar
  • 63
0 votes
2 answers
2k views

How to make proper jQuery slide down menu ?

Hello friends! I'm having issue with slide down menu when I initially click on button(image) which is <a id="js-cat" class="js-cat"></a> it works, but it slides down and immediately ...
NK Montreal's user avatar
0 votes
2 answers
514 views

open submenus on click Jquery and still be able to click submenu li links

This works to open my submenus, but I can't click on any pages in the submenus, because when an li is clicked it closes the ul without opening the page from the submenu... thoughts? $('.menu').find('&...
angeladesign's user avatar
2 votes
1 answer
197 views

Slide Up on click

I have several divs on my Page. On Page load I want only the First div visible with a 'Show more' link. Then upon clicking the 'show more', I want to load first three divs and finally on clicking it ...
Huma Ali's user avatar
  • 1,779
0 votes
1 answer
57 views

How do I ensure that no other javascript/jQuery function doesn't happen until the other slide functions complete?

I have something that I am working on that involves the slideToggle function from jQuery. I created an example on JSFiddle. If you are on that and you click the buttons from the bottom up as fast as ...
kingcobra1986's user avatar
2 votes
2 answers
13k views

open sub menu onclick and close opened sub menu

I'm using a JS code to dispay sub menu from menu by clicking on li items. when I click on a li item, when sub menu slideToggle and if a sub menu is already openned then it's slideUp. It works ...
mmdwc's user avatar
  • 1,137
1 vote
2 answers
822 views

How to use slidedown and slideup with together

I want to use slideDown and slideUp in jquery, but do not want to use slideToggle on one element. Here is code which I use, but not working correctly $(".p8").click(function(){ $(".u8").slideDown(...
user3384093's user avatar
1 vote
3 answers
2k views

jQuery slideUp while sibling div slideDown

I need to make sure only one of the .togglecontent divs show up at once, so when one slides down the other should slide up. Here is what I have so far (function($) { $(document).ready(function() ...
geochanto's user avatar
  • 992
1 vote
1 answer
369 views

closing dropdown mobile menu after opening and loading a menu items

I am using the foundation off-canvas menu with dropdown. Some of the items menus are not clickable but showing their submenus using this function: $('.page-item-1765 > a, .page-item-1761 > a')....
Maureen Placente's user avatar
0 votes
1 answer
481 views

Slide Toggle will not stay up once clicked?

I am making a menu and have ran in to some jQuery issues. I want my toggles to stay up once they have been clicked but instead they are sliding up but then straight back down again. I have managed ...
CodeGay's user avatar
  • 23
0 votes
1 answer
172 views

jQuery slideUp toggle close last div

I've got this http://jsfiddle.net/jv4ae32j/ toggle script working just the way I want it apart from one thing I want yo close the div when the last title is clicked $('.toggle').click(function(){ ...
HiroHito's user avatar
2 votes
2 answers
270 views

slideToggle not working when parent link is clicked

I have a list of links in a footer then when you click on the titles along the bottom a panel for each on slides up with links in. If one panel is open and I click another link along the footer, the ...
Catherine Allen's user avatar

15 30 50 per page