[help me] to replace the text with javascript
**From this code.**
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

`<form method="get">`

`<div align="center"><textarea name="post" ></textarea></div>`

`<div align="center"><input type="submit" value="Submit"></div>`

`</form>`

`<?`

`$aaa = $post;`

`$new_aaa=str_replace(array(`

`'a',`

`'b'`

`), array(`

`'A',`

`'B'`

`), $aaa);`

`?>`

<textarea readonly="true" cols="100" rows="3" name="post" ><? echo $new_aaa; ?></textarea>`
</div>`
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

If we write in the form of javascript to do here?
If you do not understand, it is to get value from textarea and then use the str_replace function as a type, but the output is A, help me write a little php I own one, but never wrote js T^T.

Sorry, I'm bad english

I'm Thailand people

I'm use Google Translate   : )
[help me] to replace the text with javascript
===

**From this code.**
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

`<form method="get">`

`<div align="center"><textarea name="post" ></textarea></div>`

`<div align="center"><input type="submit" value="Submit"></div>`

`</form>`

`<?`

`$aaa = $post;`

`$new_aaa=str_replace(array(`

`'a',`

`'b'`

`), array(`

`'A',`

`'B'`

`), $aaa);`

`?>`

<textarea readonly="true" cols="100" rows="3" name="post" ><? echo $new_aaa; ?></textarea>`
</div>`
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

If we write in the form of javascript to do here?
If you do not understand, it is to get value from textarea and then use the str_replace function as a type, but the output is A, help me write a little php I own one, but never wrote js T^T.

Sorry, I'm bad english

I'm Thailand people

I'm use Google Translate   : )