Created
September 9, 2018 12:55
-
-
Save MuratOrs/eb19acba729cb17ef7baf04cf4183dd9 to your computer and use it in GitHub Desktop.
Обрамить в span последнее слово в заголовке JS
This file contains hidden or 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
$('.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