# Insert Into Textarea, Javascript maybe?

**URL:** <https://forum.kirupa.com/t/insert-into-textarea-javascript-maybe/251413>\
**Category:** web dev\
**Created:** [February 8, 2008, 4:19am UTC](https://forum.kirupa.com/t/insert-into-textarea-javascript-maybe/251413 "2008-02-08T04:19:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrisclick](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/chrisclick/32/1991_2.png) [@chrisclick](https://forum.kirupa.com/u/chrisclick)\
**Post date:** [February 8, 2008, 4:19am UTC](https://forum.kirupa.com/t/insert-into-textarea-javascript-maybe/251413/1 "2008-02-08T04:19:18Z")

</div>

How would I do this:

I want to make a series of buttons like Bold, Italic and Underline… Using javascript how would I let the user press the button and a little code like was placed into the text box or around a word or sentence highlighted?

so if i had the word Hello highlighted then the user clicked Bold

it would appear like : [noparse] **Hello** [/noparse]

Any Ideas?
