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

twig - Using Twigbridge in a Laravel 5.1 Package -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -

jdbc - Not able to establish database connection in eclipse -