Difference between revisions of "Template:Washington"
Line 393: | Line 393: | ||
}); | }); | ||
− | $( | + | $(document).ready(function() { |
− | + | var tabs = $("#container-1").tabs(); | |
− | + | var tabCounter = 1; | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | $('#add_tab').click( function(){ | |
− | + | var ul = tabs.find( "ul" ); | |
− | + | 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