The Jquery Slide methods gradually changes the height for selected elements. for slide Toggle we use this method- $(selector).slidenToggle(speed,callback)
code---------
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function (){
$(".flip").click(function(){
$(".panel").slideToggle("slow");
});
});
</script>
<style type="text/css">
div.panel,p.flip
{
margin:0px;
padding:5px;
text-align:center;
background:#e5eecc;
border:solid 1px #c3c3c3;
}
div.panel
{
height:120px;
display:none;
}
</style>
</head>
<body>
<div class="panel">
<p>this post is to define the slide UP process</p>
<p>in the slide define it shows the JQuery slide methods</p>
</div>
<p class="flip">Show/Hide panel</p>
</body>
</Html>