button click focus text on textarea
<p><img src="http://i.stack.imgur.com/nY3nl.png" alt="enter image description here">i am working on this project where i press a button that will look for specific words in the textarea(may be move the cursor to that specific word). i tried many things but so far no luck.
here what i am trying to do.</p>

<pre><code>$line ="&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Drum studio home&lt;/title&gt;
&lt;body&gt;
&lt;img src="/images/fo.png" alt=""/&gt;
&lt;/body&gt;
&lt;/html&gt; ";
</code></pre>

<p>the textArea is in php page, test.php </p>

<pre><code>&lt;textarea name="tvalue" id="tvalue"&gt;
                              &lt;?php                                  
                                  echo $line . "\r\n";                                                                 
                              ?&gt;
&lt;/textarea&gt;
&lt;input type="submit" value="find next" name="submit"/&gt;
</code></pre>

<p>when i run test.php i will see the following inside the textarea.</p>

<pre><code>&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Drum studio home&lt;/title&gt;
&lt;body&gt;
&lt;img src="/images/fo.png" alt=""/&gt;
&lt;img src="/images/fo.png" alt="fo image"/&gt;
&lt;/body&gt;
&lt;/html&gt; 

**find next**  --- this is the button
</code></pre>

<p>The find next button will find any image that has no alternative text. 
I know i need js or jquery. I am new to this. so Don't know really where to start. please help. 
thanks</p>
