search and scrolling in jQuery
<p>i want to search in text and scrolling on find line. i can not develop this code for scrolling to found <code>&lt;h3&gt;</code> tag line.</p>

<p>jQuery:</p>

<pre><code>$('#searchfor').keyup(function(){
         var page = $('#all_text');
         var pageText = page.text().replace("&lt;span&gt;","").replace("&lt;/span&gt;");
         var searchedText = $.trim($('#searchfor').val());
         var theRegEx = new RegExp("("+searchedText+")", "igm");    
         var newHtml = pageText.replace(theRegEx ,"&lt;span&gt;$1&lt;/span&gt;");
         page.html(newHtml);
    });
</code></pre>

<p>HTML:</p>

<pre><code>&lt;input type="text" id="searchfor"/&gt;
&lt;p id="all_text"&gt;
&lt;h3&gt;LINE 1&lt;/h3&gt;
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euism modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum.
        Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tinci futurum.&lt;b&gt;EX1&lt;/b&gt;&lt;br/&gt;
&lt;h3&gt;LINE 2&lt;/h3&gt;        
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euism modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum.
    Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tinci futurum.&lt;b&gt;EX2&lt;/b&gt;&lt;br/&gt;
.
.
.
&lt;h3&gt;LINE 100&lt;/h3&gt;        
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euism modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum.
    Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tinci futurum.&lt;b&gt;EX100&lt;/b&gt;&lt;br/&gt;
&lt;/p&gt;
</code></pre>
