View Full Version : Inserting text into textarea via link.
02-02-2004, 10:08 PM
I wish to have a set of links that when clicked on enter's some text into a textarea.
I am going to use it to create a forum to add things like "[url]" and so forth.
Thanks a lot,
02-02-2004, 11:07 PM
02-02-2004, 11:17 PM
I changed the name of the form and textbox to match the code.
02-02-2004, 11:29 PM
buttons tend to have better functionalty but you can use links.
<input type="button" value="Click ME!" onClick="document.formname.textboxname.value='boo'">
02-02-2004, 11:34 PM
Thanks a lot. Works great now :D
02-03-2004, 03:23 AM
I need more help ,
It dous work but I need the function to ADD some text or in this case a Tag to the textarea .
Like the function is now it overwrite all the data inside it :confused: .
Thanks in advance
02-03-2004, 03:55 AM
onClick="document.formname.textboxname.value+=' added text'">
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.