Find and highlight breaks iscroll

26 views
Skip to first unread message

gus

unread,
Feb 28, 2012, 11:56:46 AM2/28/12
to isc...@googlegroups.com
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!

gus

unread,
Feb 28, 2012, 12:20:32 PM2/28/12
to isc...@googlegroups.com
I guess I posted too soon, as the problem resolved itself automagically. Please remove this thread!
Reply all
Reply to author
Forward
0 new messages