JavaScript Tabs Getting Started

In order to render the Tabs JavaScript widget on a webpage, you need to:

1. Include references to all required scripts. Make sure you include the CSS file for your preferred theme.
2. Add a DIV container element, which will optionally contain a UL element for defining the tabs, followed by a set of DIV elements, holding the content to display for each tab.
3. Initialize the widget.

<!DOCTYPE html>
<html>
<head>
<title>ShieldUI Tabs</title>
<meta charset="utf-8" />

<link rel="stylesheet" type="text/css" href="css/light/all.min.css" />
<script src="js/jquery-1.10.2.min.js" type="text/javascript"></script>
<script src="js/shieldui-all.min.js" type="text/javascript"></script>

</head>
<body>

<div id="tabs">
    <ul>
        <li>One</li>
        <li>Two</li>
    </ul>
    <div>Tab Pane 1</div> 
    <div>Tab Pane 2</div>
</div>

<script type="text/javascript">
    $(function () {
        $("#tabs").shieldTabs({
            position: "left"
        });
    });
</script>

</body>
</html>

To see an example of the control in action, along with all the required code, please refer to the following example.