Difference between revisions of "Template:Washington"

Line 393: Line 393:
 
});
 
});
  
$('#tabs').w2tabs({
+
$(document).ready(function() {
name: 'tabs',
+
    var tabs = $("#container-1").tabs();
active: 'tab1',
+
    var tabCounter = 1;
tabs: [
+
{ id: 'tab1', caption: 'Tab 1' },
+
{ id: 'tab2', caption: 'Tab 2' },
+
{ id: 'tab3', caption: 'Tab 3'},
+
  
],
+
    $('#add_tab').click( function(){
onClick: function (event) {
+
        var ul = tabs.find( "ul" );
$('#tab-content').html('Tab: ' + event.target);
+
        var current_idx = ul.find("li").length + 1;
}
+
        $("<li><a href='#fragment-" + current_idx + "'>Call Details</a></li>" ).appendTo( ul );
});
+
        tabs.append("<div id='fragment-" + current_idx + "'>new tab " + current_idx + "</div>");
 +
        tabs.tabs("refresh");
 +
        tabs.tabs("select", 1);
 +
    });
 +
});  
  
 
/* to make the sidebar anchor*/
 
/* to make the sidebar anchor*/

Revision as of 09:35, 17 September 2015