Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jquery - insert html snippet and slidedown

This is not wanting to work for some reason. I'm simply trying to have some html inserted and slid down into a div when a link is clicked.

http://jsfiddle.net/nosfan1019/mT9mc/2/

like image 515
Ryan Grush Avatar asked Dec 09 '22 22:12

Ryan Grush


1 Answers

Change your CSS.

div {
    background: #eee;
    display:none; //add display:none;
}

The reason it wasn't sliding down before, was it was already visible.

DEMO: http://jsfiddle.net/mT9mc/6/

like image 61
ahren Avatar answered Jan 09 '23 23:01

ahren