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

All Questions

Tagged with
1 vote
1 answer
2k views

How to slide up/down div on touch?

I'm creating a website where I want a div box at bottom of the page which is just a little exposed with a title of what it has inside it like say 'More about this place' and that contains options like ...
Abhi's user avatar
  • 65
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
0 votes
2 answers
44 views

Combine two functions of jquery

I would like to combine those two functions but I can't figure it out. (Sorry, in learning progress...) jQuery(document).ready(function($) { var $mores = $('#widget-about .textwidget').hide(); ...
MathCiet's user avatar
0 votes
2 answers
774 views

toggleClass on slide up

I am toggling li with the same class name. When one li is clicked open, the other li slide up. Each li has a plus sign next to it and when clicked an li is click to expand the plus sign becomes a ...
Catherine Allen's user avatar
0 votes
2 answers
490 views

jQuery Slide Up/Slide Down - How can I stop repeating myself?

Using jQuery, when a user clicks on a "plus" sign I slideDown the content and replace the "plus" sign with a "minus" sign and slideUp the content. But in a very cumbersome manner! Here is my HTML &...
William's user avatar
  • 431
2 votes
3 answers
2k views

Jquery toggle each div on hover

I have a couple of divs displayed in order and I want when the user rolls over each div show the content in a slide up animation. I have done the most part but I'm struggling to grasp how to make the ...
jolen's user avatar
  • 191
0 votes
3 answers
5k views

jQuery menu tree, slide up/down

I'm trying to create a jQuery dropdow menu, so far it's working fine. Except that you can only open folders/trees, not close them again. I guess that i have to use EQ or Siblings in jQuery? But ...
simon's user avatar
  • 2,319
0 votes
1 answer
92 views

jQuery : how to prevent animation in related div?

is there any option to prevent slideUp() when hover its related div ? $('#member1').hover(function () { $("#memberdetails2").hide(); $("#memberdetails1").stop(true, true).slideDown(); }, ...
Mo.'s user avatar
  • 27.1k
0 votes
1 answer
3k views

SlideUp and Slidedown on hover menu

I am having a menu which will show a slider on hover(). I have written it like this $(".menu2").hover(function () { $(".slider").slideDown(500); $(".slider").css('display','block'); }, ...
Jhonny's user avatar
  • 164
0 votes
2 answers
2k views

Hide div onClick with jQuery

I have a demo here of a script that allows me to show and hide content on my site. It is working perfectly. However, when I click on a link to show the content and then click it again to hide it, it ...
michaelmcgurk's user avatar
0 votes
3 answers
603 views

How to SlideUp div when clicked in jQuery

I have the following simple demo here: https://tinker.io/8e585/1. I have attached code below. Initially, the contents of both 'Test 1' & 'Test 2' are closed. However, when clicked, they open. I ...
michaelmcgurk's user avatar
1 vote
2 answers
2k views

JQuery Toggle Content

I am trying to make a simple slideUp slideDown content I have the following code so far: <style type="text/css"> ul { list-style: none; margin: 0; padding: 0; } ...
user1248589's user avatar
1 vote
3 answers
592 views

jQuery toggle / slide resetting links

I made a toggle script for some text on a website. I have about 10 "head" links and two h3 links. Basically if you click one head link it opens and closes by clicking it again. If you click on the h3 ...
user1842315's user avatar
1 vote
1 answer
3k views

Jquery UI slideUp and slideDown

I am busy to show and hide some boxes with a click on a button. It is working well but i must click 2 times the first time i want to hide a box? This is my JS code: $(function() { $('.title ....
Maanstraat's user avatar
  • 1,251
0 votes
3 answers
2k views

Trying to toggle multiple DIV's with Jquery

I have been trying to get this function to work for awhile now. I have 11 different divs that are hidden by default. Each have a "trigger" button that is supposed to get them to pop open. I was able ...
RachelGatlin's user avatar