code: function divSpanWrap($el, $container, method) {
          switch (method) {
              case "after":
                  // Result:  <element /> <container />
                  $el.after($container);
                  return $el.next();
              case "before":
                  // Result:  <container /> <element />
                  $el.before($container);
                  return $el.prev();
              case "wrap":
                  // Result:  <container> <element /> </container>
                  $el.wrap($container);
                  return $el.parent();
          }
  
          return null;
      }
docs: Wrap an element inside of a container or put the container next
  to the element.  See the code for examples of the different methods.
  
  Returns the container that was added to the HTML.
  
  @param {jQuery} $el Element to wrap
  @param {jQuery} $container Add this new container around/near $el
  @param {String} method One of "after", "before" or "wrap"
  @return {jQuery} $container after it has been cloned for adding to $el