How to using javascript to create nested table?

C

Cylix

I have try to using createElement to form a nested table,
But it seems cannot show the nested table.

Is it possible to do so?
 
I

Ian Collins

Cylix said:
I have try to using createElement to form a nested table,
But it seems cannot show the nested table.

Is it possible to do so?
Yes, post what you have tried, what you expected see.
 
R

RobG

Cylix said:
I have try to using createElement to form a nested table,
But it seems cannot show the nested table.

Is it possible to do so?

Yes, provided it is nested inside a TD element.

In IE you need to either create a tableSection element (tbody, thead,
tfoot) and add tr elements to them, or use the HTMLTableElement
interface's insertRow method.

You'll find some useful information here:

<URL:http://developer.mozilla.org/en/docs/DOM:table>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top