Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Обрамить в span последнее слово в заголовке JS
$('.carousel-service-composition h3').each(function() {
var ths = $(this);
ths.html(ths.html().replace(/(\S+)\s*$/,'<span>$1</span>'));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment