Insert value into TEXTAREA where cursor was
<p>I have a textarea and a div with values. When I click on a value I insert it into textarea. I need it to be inserted where my cursor was in textarea. Why do I say WAS? Because when I move it out and click on a value to insert, I assume it looses focus in the text area. </p>

<p>So, my question is, is there a way to "remember" the latest cursor position within textarea and then insert my values at that position?</p>

<p>Perhaps it could be a char number in a string?.. Currently I add it like this: </p>

<pre><code>input.val( function( i, val ) { return val + " " + myInsert + " "; } );
</code></pre>

<p>Also I use jQuery, perhaps I could use it?</p>
