html - Slide up, and hide a div using jquery on click -


i want hide div when user clicks on element animation. want div slide up, , hide (display: none) onclick. possible? if so, how?

thanks help!

you can use .slideup() method.

jsfiddle

css

#container {     border: 3px double blue;     height: 300px; } 

html

<div id="container">this must slide up</div> <button>click me</button> 

js

$(function() {     $("button").on("click", function() {         $("#container").slideup();     }); }); 

Comments

Popular posts from this blog

gcc - MinGW's ld cannot perform PE operations on non PE output file -

How to connect android app to App engine -

hadoop - Running Map Reduce Job shows error - Mkdirs failed to create /var/folders/ -