Skip to content

Instantly share code, notes, and snippets.

@keriati
Created August 21, 2012 19:38
Show Gist options
  • Save keriati/3418629 to your computer and use it in GitHub Desktop.
Save keriati/3418629 to your computer and use it in GitHub Desktop.
Testing
(function () {
$('h4 a').each(function() {
var $this = $(this),
content = $this.html(),
wordsArray = content.split(" "),
newcontent = [];
$this.html('');
$.each(wordsArray, function(i, e) {
$('<span/>').addClass('word' + i).html(e).appendTo($this);
});
})
})(jQuery);​
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment