Hi everyone,
You can use below code to generate tabs using jQuery tabs plugin :
<script>
$(function() {
$( "#tabs" ).tabs();
});
</script>
<div class="demo">
<div id="tabs">
<ul>
<li><a href="#tabs-1">Nunc tincidunt</a></li>
<li><a href="#tabs-2">Proin dolor</a></li>
<li><a href="#tabs-3">Aenean lacinia</a></li>
</ul>
<div id="tabs-1">
<p>Proin elit arcu, rutrum commodo, vehicula tempus, commodo a, </p>
</div>
<div id="tabs-2">
<p>Morbi tincidunt, dui sit amet facilisis feugiat, odio metus gravida ante,</p>
</div>
<div id="tabs-3">
<p>Mauris eleifend est et turpis. Duis id erat.</p>
<p>Duis cursus. Maecenas ligula eros, blandit nec, pharetra at, semper at, magna.</p>
</div>
</div>
</div><!-- End demo -->
<div style="display: none;" class="demo-description">
<p>Click tabs to swap between content that is broken into logical sections.</p>
</div><!-- End demo-description -->
Post your comment if you find any difficulties to develop tabs.
No comments:
Post a Comment