Hi,
I am trying to add text from the db into the RTF text box and cannot get it to work. It doesn't give an error. Here is my code that inserts the text into the RTF text box.
This is the script:
<SCRIPT LANGUAGE="JavaScript">
oldvalue = "";
function passText(passedvalue) {
if (passedvalue != "") {
var totalvalue = document.form1.comment_term1.value+""+passedvalue+" ";
document.form1.comment_term1.value = totalvalue;
oldvalue = document.form1.comment_term1.value;
}
}
</script>
This should submit into the RTC textbox:
<input type=button value="Add COmment" onClick="passText(this.form.dropdownbox.options[this.form.dropdownbox.selectedIndex].value);" name="button" class="button1">
Any suggestion would be great.
Thanks