Results 1 to 2 of 2

Thread: Display message on edit

  1. #1
    Join Date
    Jan 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Display message on edit

    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

  2. #2
    Join Date
    Dec 2005
    Location
    Moscow, Russia
    Posts
    39
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Code:
    name_of_form.name_of_textarea.value=document.getElementById('id_of_tag_with_html').innerHTML;
    Or you want to preview entered own code?

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •