I am creating a blog and below the textarea there will be an options are, and if the user clicks on an image the relevant code will be added at the end of all the text in the textarea. How do i do this? Without a page refresh type thing?
Thanks
Last edited by benyboi on Sun Feb 25, 2007 7:06 pm, edited 1 time in total.
To elaborate, you'll want to retrieve the textarea node, and then append text into the object's value property. If you want to be really cool, you'd also take the position of the cursor into effect and add the text there.