Its a simple one. But i just confused.
Here is jquery code:
<!DOCTYPE HTML>
<html>
<head>
<title>Jquery </title>
<link rel="stylesheet" href="css/style.css" type="text/css">
<script src="http://code.jquery.com/jquery-2.1.3.min.js"></script>
</head>
<body>
<h2>welcome to jquery</h2>
<p>Jquery is invented by John Resig</p>
<button id="button">submit</button>
<script>
$(document).ready(function() {
$("button").click(function() {
$("h2").slideDown(400);
});
});
</script>
</body>
</html>
But it is not working, but slideUp()
is working fine.
May i know why? what is my mistake?
Thanks in advance.