Hashir Azad Hashir Azad - 4 months ago 7
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

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

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

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

Comments