jQuery slidetoggle not working?

temporary_user_name picture temporary_user_name · Mar 18, 2013 · Viewed 29k times · Source

http://jsfiddle.net/nKUgA/2/

I'm just trying to make a small box slide down from the pictureControls div which acts as a button, but slideToggle is doing nothing-- it just sort of glitches into place and back again. Read a ton of other similar questions, none helped or applied.

    $('#pictureControls').click(function(event) {
        $('#pictureControlsMenu').slideToggle(300);
        event.stopPropagation();
    });

Answer

Reinstate Monica Cellio picture Reinstate Monica Cellio · Mar 18, 2013

slideToggle wasn't working because the table is not a block element. In the following update I've made it a block element (instead of display:none), and then hidden it on page load with jQuery...

http://jsfiddle.net/nKUgA/4/