code: function(tab) {
          tab = $(tab);
  
          var index = tab.data('tab-index'),
              section = this.sections.eq(index),
              options = this.options,
              url = this.readValue(tab, this.readOption(tab, 'getUrl'));
  
          this.fireEvent('showing', [this.index]);
  
          // Load content for AJAX requests
          if (url.substr(0, 10) !== 'javascript' && url.substr(0, 1) !== '#') {
              this.loadContent(url, { section: section });
          }
  
          // Toggle tabs
          this.tabs
              .aria('toggled', false)
              .removeClass('is-active');
  
          // Toggle sections
          if (index === this.index && options.collapsible) {
              if (section.is(':shown')) {
                  section.conceal();
  
              } else {
                  tab.aria('toggled', true).addClass('is-active');
                  section.reveal();
              }
          } else {
              this.hide();
  
              tab.aria('toggled', true).addClass('is-active');
              section.reveal();
          }
  
          // Persist the state using a cookie
          if (options.persistState && $.cookie) {
              $.cookie('toolkit.tab.' + options.cookie, index, {
                  expires: options.cookieDuration
              });
          }
  
          this.index = index;
          this.node = tab;
  
          this.fireEvent('shown', [index]);
      }
docs: Show the content based on the tab. Can either pass an integer as the index in the collection,
  or pass an element object for a tab in the collection.
  
  @param {jQuery} tab