Skip to content

Instantly share code, notes, and snippets.

@gerkibo
gerkibo / table-wrapper.js
Last active May 4, 2016 15:38
This function will wrap a div with class table-wrapper around a table
function tableWrap(parentClass){
//parentClass represents a CSS class of the parent content wrapper to make selector specific
$('.' + parentClass + ' table').wrap('<div class="table-wrapper"></div>');
}