PDA

View Full Version : Write text to a textarea in another frame



lgk
03-05-2005, 05:25 PM
Can anyone help me tweak this script to write to a textarea instead of the the doc body?Please and thankyou.



<SCRIPT LANGUAGE="JScript">
function fnAdddt(){
parent.otherframe.document.body.insertAdjacentHTML("BeforeEnd", "<br>" + timeText.value +"<br>");
}
</SCRIPT>


<SELECT ID=timeText>
<OPTION VALUE="">Time</OPTION>
<OPTION VALUE="Need Repairs Done By...8-00 am..">8-00 am</OPTION>
</SELECT>
<INPUT TYPE=button VALUE="Add To Repair Order" onclick="fnAdddt()">