How "focus" , "make active" , "insert cursor" into textarea at end
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4715762/javascript-move-caret-to-last-character">Javascript: Move caret to last character</a>  </p>
</blockquote>



<p>Welcome,</p>

<p>I have some link's inside my webpage.</p>

<p>Is there any function in jquery / javascript what allow me to put cursor into textarea at end ?</p>

<p>When user click at link above textarea, i would like move cursor back where he came from.</p>

<p>Now he have to  stop typing and click into textarea back. </p>

<p>Just like here, when he click for example "bold".</p>

<p>Now i use  </p>

<pre><code>$('#textarea').focus();
</code></pre>

<p>But it move cursor at beginning.
I would like at end.</p>
