LordGarfield
IS-IT--Management
Hello,
What I was wondering if it is possible to get something like this.
A user fills in a textarea. With a certain layout. But he wants to put text in bold to. Is there a way that the user can select a part out of the textarea. presses a button in the form wich says B from bold. And then Javascript will add before the selected text and after selected text.
It would be nice. I can do it so that if you press a button once it adds on the curront position and if you press it again it adds but it would be nicer if you can select text press the button and the tags are added.
Tanks already.
PS if you can do it in another way so let's say java. then I can try that one to but I prefere Java Script.
What I was wondering if it is possible to get something like this.
A user fills in a textarea. With a certain layout. But he wants to put text in bold to. Is there a way that the user can select a part out of the textarea. presses a button in the form wich says B from bold. And then Javascript will add before the selected text and after selected text.
It would be nice. I can do it so that if you press a button once it adds on the curront position and if you press it again it adds but it would be nicer if you can select text press the button and the tags are added.
Tanks already.
PS if you can do it in another way so let's say java. then I can try that one to but I prefere Java Script.