Last active
May 4, 2016 15:38
-
-
Save gerkibo/54e6b3bf5abd690d583af9bea29f76dd to your computer and use it in GitHub Desktop.
This function will wrap a div with class table-wrapper around a table
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment