Jquery Accordion.
<html>
<head>
<meta charset="utf-8" />
<title>Naveen</title>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script>
$(document).ready(function() {
$( "#accordion" ).accordion({
active:true,
collapsible:true,
});
$( "#accordion1" ).accordion({
active:true,
collapsible:true,
});
$( "#accordion2" ).accordion();
$("#accordion2").accordion("destroy");
$("#accordion2").empty();
$( "#accordion" ).click(function(e) {
});
});
</script>
</head>
<body>
<div id="accordion">
<h3>First Section</h3>
<div>
<p id="accordion">
Content for section first
</p>
</div>
<h3>Second Section</h3>
<div id="accordion1">
<p>
Content For Second Section
</p>
</div>
<h3>Third Section</h3>
<div id="accordion2">
<p>
Content for third section with extra html
</p>
<ul>
<li>List item one</li>
<li>List item two</li>
<li>List item three</li>
</ul>
</div>
</div>
</body>
</html>
<head>
<meta charset="utf-8" />
<title>Naveen</title>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script>
$(document).ready(function() {
$( "#accordion" ).accordion({
active:true,
collapsible:true,
});
$( "#accordion1" ).accordion({
active:true,
collapsible:true,
});
$( "#accordion2" ).accordion();
$("#accordion2").accordion("destroy");
$("#accordion2").empty();
$( "#accordion" ).click(function(e) {
});
});
</script>
</head>
<body>
<div id="accordion">
<h3>First Section</h3>
<div>
<p id="accordion">
Content for section first
</p>
</div>
<h3>Second Section</h3>
<div id="accordion1">
<p>
Content For Second Section
</p>
</div>
<h3>Third Section</h3>
<div id="accordion2">
<p>
Content for third section with extra html
</p>
<ul>
<li>List item one</li>
<li>List item two</li>
<li>List item three</li>
</ul>
</div>
</div>
</body>
</html>