Jquery Slide-- Slide Down

Ersudeep13
Posted by Ersudeep13 under jQuery category on | Points: 40 | Views : 380
The Jquery Slide methods gradually changes the height for selected elements.
for slide doen we use this method-
$(selector).slideDown(speed,callback)

codes---------
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function (){
$(".flip").click(function(){
$(".panel").slideDown("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 down process</p>
<p>in the slid define it shows the JQuery slide methods</p>
</div>

<p class="flip">Show panel</p>

</body>
</Html>

Comments or Responses

Login to post response