View Full Version : Buttons that when clicked, add code into form fields

Feb 28th, 2007, 06:19 PM
Hi there,

I was just wondering, i have a comments system, and is there any way to have javascript / ajax / web 2.0 buttons, that like say bold, and when they are pressed will add code into my comments box.

Like i could have a black text button, and when someone clicks that, it will add in...

into the comments field. Instead of people typing it? Like on the forum, when posting you can click quote or code etc.

How can i do this?