For loop table in html

Please help with below mentioned scenario->

I am having wanna display values from 1 to 30 in a table such a way that nos 1,2,3 should come in one tag and like wise 4,5,6 in other tr tag ans so on till 30 value. I wanna use table for displaying values in a element of a table. wherein each value like "1" should display in one , no "2" should display in different and so on.

I mean to say that value "1" should be displayed in single of

tag ,value "2" should be displayed in another should be used. Output should be as folllows ->

1 2 3 
4 5 6
7 8 9

and so on!

Early response would be much appreciated. Thanks.

I have tried Code as given below,



    document.write["        
tag and so on ,Also after three subsequent s one
"]; document.write[" "]; document.write[" "]; document.write[" "]; var cnt = 0; for [var idx = 1; idx

Chủ Đề

"]; document.write["