Hi,
I am using FCKeditor. I put a HTMLBox (Rich Text Editor) on web page and a select list having multiple options.
I need JavaScript to add Selected Text from list in HTMLBox on List's Change Event.
Thanks.
How to set value in HTMLBox
Moderator: General Moderators
-
muhammad_yahya
- Forum Newbie
- Posts: 3
- Joined: Thu Mar 08, 2007 11:12 pm
- abeterosso
- Forum Newbie
- Posts: 11
- Joined: Fri Mar 16, 2007 8:50 am
- Location: Italy
...try this code:
is this what you need?
is this what you need?
Code: Select all
<SCRIPT LANGUAGE="JavaScript">
function f1()
{
document.Form_1.textBox07.value = document.Form_1.select1.value;
}
</SCRIPT>
<FORM NAME=Form_1>
<SELECT TYPE="select" NAME="select1" onchange="f1()"
<option>Rome</option>
<option>Boston</option>
<option>Paris</option>
<INPUT TYPE="text"
NAME="textBox07" VALUE="" readonly>
</FORM>