I i am new for .net any one can help me creating tables 1 to 100 using javascript

Recommended Answers

All 2 Replies

javaScript is not from .net.

creating tables 1 to 100 using javascript

do you want to create 100 table ???

-just loop through 1 to 100
- select parent element for tables
- create table element using dom api documet.createElement("table");
-add table element using dom api appendChild()

i hope this will help

Hi there,

well you may uses this script to create the tables of 1 to 100,

<html>
<head>
<title>Tables 1 To 100 </title>
<script language="javascript" type="text/javascript">
    for (i=1;i<=100; i++)
   {
      document.write("Table of: "+ i+"<br />");
      for(j=1; j<=10; j++)
      {  
        document.write(i + "X" + j +" = " + (i*j) + "<br s/>");
      }
      document.write("<hr />");
   }
</script>
</head>
<body>
</body>
</html>

I am not sure if you are talking about HTML Tables :)) if yes then let me know maybe I may help in that as well

hope this may help you

Rahul Dev

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.