I refer below example,

<http://jsfiddle.net/rHDh9/>

In example , if you click anywhere inside of textarea and if you click to button , it gets button value and sets to textarea where mouse clicked.

**My question:**

If i use below textarea , when i click to button , input value sets to textarea where mouse clicked.

```
<div id="100000000">

<input id="insertPattern" type="button" value="insert pattern" />
<textarea class="ckeditor" id="aboutme">insert some text into this string</textarea>

 </div>

```

However if i use below Html.TextArea , if i click to button , input value never sets to Html.Textarea where mouse clicked.

```
<div id="100000000">

    <input id="insertPattern" type="button" value="insert pattern" />
    @Html.TextArea("editor", new { @class = "ckeditor", @id = "aboutme" })

</div>

```

Why it works for textarea and not work for Html.TextArea on button click ?

Where i miss exactly ?

any help will be appreciated.

Thanks.