JQuery UI Tabs Widget Example | Creating Content Tabs with jQuery UI

This is one of the JQuery magic. Creating tabs using JQuery UI Widget is quite easy by doing few steps. In this example, i am showing how to create content tabs with jQuery UI. In this example, three tabs i have prepared.


    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/jquery-ui.min.js"></script>
    <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.8/themes/base/jquery-ui.css" type="text/css" media="all" />

    <script type="text/javascript">
        $(function() {
    <div id="tabs">
                <li><a href="#tabs-1">Tab 1</a></li>
                <li><a href="#tabs-2">Tab 2</a></li>
                <li><a href="#tabs-3">Tab 3</a></li>
            <div id="tabs-1">
                    This is tab one data.</p>
            <div id="tabs-2">
                    This is tab two data.</p>
            <div id="tabs-3">
                   This is tab three data.</p>

Share this post :

Post a Comment

Please give your valuable feedback on this post. You can submit any ASP.NET article here. We will post that article in this website by your name.

Support : Ranga Rajesh Kumar
Copyright © 2012. ASP.NET Examples - All Rights Reserved
Site Designed by Ranga Rajesh Kumar