Here is the JQuery code to highlight all occurrences of a given text in a container: $(".container:contains('Google')").html(function(_, html) { return html.replace(/(Google)/g, '<span style="background-color: yellow;">$1</span>'); }); The above bl...
blog.adarshkonchady.com1 min readNo responses yet.