Autofill A Textarea

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
icesolid
Forum Regular
Posts: 502
Joined: Mon May 06, 2002 9:36 pm
Location: Buffalo, NY

Autofill A Textarea

Post 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?
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post 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.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
icesolid
Forum Regular
Posts: 502
Joined: Mon May 06, 2002 9:36 pm
Location: Buffalo, NY

Post by icesolid »

Not that familiar with javascript.
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Post by califdon »

icesolid wrote:Not that familiar with javascript.
That would make it more difficult.
Post Reply