View Full Version : creating tables using js
i've real difficulty in creatin a blank table which has to be 23 rows by 25 cols, i have to use a for loop for it and i've tries many times and still am really unsuccessful.
I wud apprciate if some one cud help me
thanx
Vladdy
12-23-2003, 09:15 PM
Here is a starting point:
http://www.codingforums.com/showthread.php?s=&threadid=26104
:thumbsup:
Skyzyx
12-23-2003, 11:16 PM
Originally posted by Vladdy
Here is a starting point:
http://www.codingforums.com/showthread.php?s=&threadid=26104
:thumbsup:
Gee, looks like Yet Another Unhelpful Post (tm)... :rolleyes:
But, Vladdy is right. You need to work on writing your English as properly as you can.
<script language="javascript" type="text/javascript">
<!--
document.write('<table>');
for (var x=1; x<=23; x++)
{
document.write('<tr>');
for (var y=1; y<=25; y++)
{
document.write('<td>r'+x+'c'+y+'</td>');
}
document.write('</tr>');
}
document.write('</table>');
//-->
</script>
Hope this helps! :thumbsup:
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.