Find next text by search and highlight not works
问题 When search any text on search box, it can be find and highlighted the correct text, but when search next/new text, it's unable to find the next/new text, it's not working when search again, i'm unable to find the issue. The JS below. JS $('button#search').click(function() { var page = $('#ray-all_text'); var pageText = page.html().replace("<span>", "").replace("</span>"); var searchedText = $('#searchfor').val(); var theRegEx = new RegExp("(" + searchedText + ")", "igm"); var newHtml =