[Javascript] Dynamically Adding & Removing Items Between a DIV

Andrew Gibson andrew at shuttle.net.nz
Fri Jan 13 01:01:58 CST 2006


Wouldn't you just code for the innerHTML of the div?

var myHTML=""

// or

myHTML="<table> etc..."

document.getElementById("xxx").innerHTML=myHTML



============================
Subject: [Javascript] Dynamically Adding & Removing Items Between a DIV


I have search Goggle and have gone to all types of
JavaScript sites but can't find an answer.

Can someone lead me in the right direction?  Please.

<Div id="xxx"]

    I want to be able to TOTALLY REMOVE ALL ITEMS 
          (not just Hide\Show) 
    and
    I want to be able to add ITEMS (i.e. Tables, etc.)

<\Div]



Thanks,
Gene




More information about the Javascript mailing list