Guest User

Untitled

a guest
Feb 25th, 2018
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. <div class="row">
  2. <ul class="tabs main-tab nav-tabs" data-tabs id="shop-main-tabs">
  3.  
  4. <li class="tabs-title is-active"><a href="#info1" aria-selected="true" ><i class="fi-torso"> Add Participant</i></a></li>
  5.  
  6. <li class="tabs-title main-tab" ><a href="#" class="add-form"><i class="fi-plus">+</i></a></li>
  7.  
  8. </ul>
  9.  
  10. </div>
  11.  
  12. $(".tabs-content").append('<div class="tabs-panel is-active" id="' + tabId + '">' + $("#info1").html() + '</div>');
  13.  
  14. //Find the parent "ul" that contains the tabs
  15. var target = document.getElementById("shop-main-tabs");
  16. var options = {
  17. "linkClass": "tabs-title"
  18. };
  19.  
  20. //Use the target "ul" to initialize the "Tabs" object.
  21. var elem = new Foundation.Tabs($(target), options);
  22.  
  23. //Find the tab that will be selected
  24. var tab = document.getElementById(tabId);
  25. elem.selectTab($(tab));
Add Comment
Please, Sign In to add comment