Created
December 22, 2018 14:55
-
-
Save RuslanAsadov/4df3a6d284cc4ef23358bdb7bcce14d8 to your computer and use it in GitHub Desktop.
replace-content.js
This file contains 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
$('.item').each(function() { //замена во всех item | |
var ths = $(this); | |
ths.html(ths.html().replace('O', '<span>O</span>')); //заменяем в item букву О на О в span | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment