Skip to content

Instantly share code, notes, and snippets.

@markjs
Created November 18, 2013 22:09
Show Gist options
  • Save markjs/7536285 to your computer and use it in GitHub Desktop.
Save markjs/7536285 to your computer and use it in GitHub Desktop.
$('[data-msg]').each(function() {
$this = $(this);
messageText = $this.attr('data-msg');
$this.after('<span>' + messageText + '</span>');
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment