Hashir Azad Hashir Azad - 1 year ago 54
HTML Question

How to hide div slowly in javascript

I have two

div
when I click button to close the
div
. second
div
moves upward I just want to do this slowly. I try to use transition effect but cant do it any help? thanks in advance.
fiddle

Answer Source

http://jsfiddle.net/ssZXA/185/

read the documentation about .hide() the first argument is "duration"

You can use $("#notice").hide('slow');