Saturday, September 16, 2017

tab window

This is the tab window using jQuery, jQuery UI and jQuery.tablesorter.
The code:
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/base/jquery-ui.css"></link>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.28.15/css/dragtable.mod.min.css">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.28.15/js/jquery.tablesorter.min.js"></script>
<script>
    $( function() {
        $( "#tabs" ).tabs();
    });
</script>
    <div id="tabs">
  <ul>
<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>
</ul>
     <div id="tabs-1">
            <span>tab1</span><br/>
            <span>tab1</span><br/>
            <span>tab1</span><br/>
            <span>tab1</span><br/>
            <span>tab1</span><br/>
     </div>
     <div id="tabs-2">
            <span>tab2</span><br/>
            <span>tab2</span><br/>
            <span>tab2</span><br/>
            <span>tab2</span><br/>
            <span>tab2</span><br/>
     </div>
        <div id="tabs-3">
            <span>tab3</span><br/>
            <span>tab3</span><br/>
            <span>tab3</span><br/>
            <span>tab3</span><br/>
            <span>tab3</span><br/>
     </div>
    </div>