Book a Property Valuation $(function(){ var match = 'VIDEOETTE'; $("#video-play > span:contains(" + match + ")").each(function(){ var $this = $(this); $this.html(function(){ return $this.html().replace(match, "VIDEO"); }); }); });