Skip to content

Instantly share code, notes, and snippets.

@yellowberri-snippets
Last active December 30, 2015 04:49
Show Gist options
  • Save yellowberri-snippets/7778827 to your computer and use it in GitHub Desktop.
Save yellowberri-snippets/7778827 to your computer and use it in GitHub Desktop.
JS: Place After in Source Order
function placeAfter(element, destination) {
var element = $(element);
element.remove().clone().insertAfter( destination);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment