No-Library (pure JS), HTML, CSS, JavaScript
jQuery 2.1.0, HTML, CSS, JavaScript
jQuery 1.9.1, HTML, CSS, JavaScript
This code takes a class of tab-4 and adds four tabs to the element with the class.
This CSS work around makes use of a sibling element that is positioned as a background element, ultimately useful for certain scenarios where a parent selector is needed.