Page 1 of 1

Autofill A Textarea

Posted: Wed Dec 05, 2007 9:02 am
by icesolid
I was just wondering how would I go about creating a textarea that has form buttons above it that when clicked filled in different text wording into the textarea?

Posted: Wed Dec 05, 2007 9:43 am
by pickle
Give the textarea an ID, then attach some javascript to the 'onclick' event for the buttons. When the buttons are clicked, push text into the 'value' of that textarea.

Posted: Wed Dec 05, 2007 9:46 am
by icesolid
Not that familiar with javascript.

Posted: Wed Dec 05, 2007 4:54 pm
by califdon
icesolid wrote:Not that familiar with javascript.
That would make it more difficult.