Hello, I'm trying to create a "find on page" function for iScroll. Everything works fine, but the iscroll is broken after the search and does not respond to any interaction. Here's the part of the script that's causing the problem:
$('div.container').each(function(){
$(this).html($(this).html().replace(new RegExp(term,'g'), '<span class="highlight">'+term+'</span>'));
})
Any help would be appreciated!