Facebook Twitter Reset

This Tutorial Has Been Viewed 8,272 Times.

Expand and collapse toggle div using jquery

This is a very simple tutorial on how to show and hide a division tag or Expand and collapse toggle div using simple jquery.

<script src=”http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js” type=”text/javascript”></script>

<script type=”text/javascript”>

$(document).ready(function(){

$(“#butShowHideSlow”).click(function () {

$(“#divShowHideSlow”).toggle(“slow”);

});

});

</script>

<button id=”butShowHideSlow”>Click Me</button>

<div style=”width:300px;height:47px; border: solid 1px black;background-color:white;text-align:center;” id=”divShowHideSlow”>Div that hide and show slowly</div>

Check out the DEMO here
Very Simple Right :)

VN:F [1.9.13_1145]
Rating: 7.3/10 (19 votes cast)
VN:F [1.9.13_1145]
Rating: +5 (from 5 votes)
Expand and collapse toggle div using jquery, 7.3 out of 10 based on 19 ratings

Incoming search terms:




You will also be interested in ,

No comments yet.

Leave a Comment

Spam protection by WP Captcha-Free

Affordable Seo PackagesSeo BlogEdu Backlinks
More in JavaScripts (22 of 80 articles)