Last active
October 6, 2016 14:47
-
-
Save alex-boom/fb1c2425fa61206c3f1d0246d7aa894c to your computer and use it in GitHub Desktop.
replaceTag
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
//replace tag | |
var countBox = $(".tour h2").text(); | |
var tag = ''; | |
tag += '<span>'; | |
tag += countBox; | |
tag += '<span>'; | |
$(".tour h2").replaceWith(tag); | |
//replace tag |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment