Switch to full style
JQuery Examples
Post a reply

accordion using JQuery

Thu Jan 10, 2013 10:57 pm

accordion layout using JQuery UI
javascript code
<html>
<head>
<title>accordion using JQuery</title>

<!--
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js">
</script>
Note you can download the JQuery package instead of using Google version. -->
<script src="jquery-1.8.3.js"></script>
<script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" />
<script>


$(document).ready(function(){

$( "#accordionDiv" ).accordion();

});
</script>
</head>
<body>
<div id="accordionDiv">
<h3>Sub title 1</h3>
<div>
<p>
Content 1
</p>
</div>
<h3>Sub title 2</h3>
<div>
<p>
Content 2
</p>
</div>
<h3>Sub title 3</h3>
<div>
<p>
Content 3
</p>
<ul>
<li>Item1</li>
<li>Item2</li>
<li>Item3</li>
</ul>
</div>
<h3>Sub title 4</h3>
<div>
<p>
Content 4
</p>

</div>
</div>
</body>
</html>

For custom accordion :
jquery-examples/list-of-links-look-like-accordion-using-jquery-t10707.html



Post a reply
  Related Posts  to : accordion using JQuery
 list of links look like accordion using JQuery     -  
 How to start JQuery     -  
 Using firebug with JQuery     -  
 JQuery Animations     -  
 slide down using JQuery     -  
 not taking items using jquery     -  
 Load tweets using JQuery     -  
 Stop animation in JQuery     -  
 Handle Cookies using JQuery     -  
 Text Suggestions using JQuery     -  

Topic Tags

JQuery UI