On IE cursor is comming always at start in textarea
<p>I am dealing with textarea, and on click of this I am calling one replace function which will remove some specified string in textarea, this is the basic operation.</p>

<p>Expected behavior after clicking on textarea</p>

<p>1) At first click :</p>

<ul>
<li>It should remove specified string from textarea</li>
<li>Cursor should come at end of string</li>
</ul>

<p>2) more than one click :
- Cursor should come at where ever user clicks in text area</p>

<p><strong>Below is my replace function....</strong></p>

<pre><code>function replace(id,transFromDb) {
    newStr = $("#"+id).val();
 var len = null;
  if(transFromDb == '') {
   newStr = newStr.replace(Lang.Message27,'');
   newStr = newStr.replace(Lang.Message28,'');

  }
  else {
   newStr = newStr.replace(Lang.Message28,'');
   newStr = newStr.replace(Lang.Message27,'');
  }

  /* change font weight as bold. */
  $("#"+id).css({"fontWeight":"bold"});
  $("#"+id).val(newStr);
}
</code></pre>

<p>Assume that Lang.Message is specified string.</p>

<p><strong>It's working above behavior with FF.
Facing issue on IE, it always keep cursor position at first.</strong></p>

<p>Please provide any solution....</p>

<p>Thanks in Adavance
Pravin</p>
