PDA

View Full Version : Display message on edit



navster
01-30-2006, 11:02 AM
Hi guys,

I'm having trouble finding a way of doing the following:

What I need is to somehow display HTML once a textbox/area has been edited. I'm sure this is possible in Javascript but I'm not sure how to go about it.

Many thanks in advance,

navster

12345c
01-30-2006, 02:21 PM
name_of_form.name_of_textarea.value=document.getElementById('id_of_tag_with_html').innerHTML;

Or you want to preview entered own code?


document.getElementById('id_of_tag_for_preview_html').innerHTML=name_of_form.name_of_textarea.value;