Questions tagged [slidetoggle]

slidetoggle is a function of jQuery which displays or hides the matched elements with a sliding motion.

slidetoggle is a function of jQuery which displays or hides the matched elements with a sliding motion.

1299 questions
60
votes
7 answers

jquery .slideToggle() horizontal alternative?

slideToggle does exactly what I want, only I want the slide to be horizontal. I now have an horizontalhide/show and animation on click, but I would like to have the toggle options. So that when I click on the active link, it will play the animation…
ThomasCS
  • 717
  • 2
  • 6
  • 11
45
votes
6 answers

change slideToggle() behaviour to display:inline-block instead of display:block?

my target slideToggle() div needs to be display:inline-block instead of display:block when it's open. Is there a way to change the jquery behavior here? Edit: i'm using jQuery 1.7.0 at the moment. Also, the
is initially at display:none and…
iHaveacomputer
  • 1,427
  • 4
  • 14
  • 30
31
votes
9 answers

slideToggle in table row

does slideToggle work with table? I want to slideToggle a row of a table. but it just appears without any effect.
hd.
  • 17,596
  • 46
  • 115
  • 165
29
votes
13 answers

slideToggle height is "jumping"

My jQuery slideToggle() experiment Can anybody tell me why my boxes "jump" when i open them? The first half they slide, the rest they "jump"?? Thanks, Johannes
Johannes
  • 321
  • 1
  • 3
  • 7
22
votes
8 answers

How to test if DIV is open or closed after slideToggle

I have a Jquery Ui button ( #toggleIcons) that when clicked, toggles a div (.icons) to show some icons. I am also using Jquery Isotope and Infinitescroll to add new images dynamically. What I am trying to do is to have a way for the slideToggle…
Macsupport
  • 5,406
  • 4
  • 29
  • 45
22
votes
5 answers

jQuery is not defined in Wordpress, but my script is enqueued properly

I am trying to load a separate javascript file mobile-menu.js to my Wordpress theme. When I look at the console, it says, "jQuery is not defined." However, I know that I enqueued my script files correctly. Any ideas? HTML file:
nicatoby
  • 273
  • 2
  • 3
  • 6
16
votes
2 answers

jQuery slideToggle on a table with thead and tbody elements. No animation.

I have a table with a thead and tbody sections. I have applied a slideToggle on this successfully, but the animation is broken. When a user clicks on the thead, I want the contents of the tbody to slide up. Currently what happens is the section…
Rollcredit
  • 453
  • 2
  • 5
  • 13
13
votes
4 answers

jquery slideToggle direction

I am trying to slide jquery .slideToggle but i am not able to add direction left to right or right to left on click of a div (nav). Please help me out, below is my code.