title: Creating dynamic tables using javascript, given rows and column in textboxes
body: <p>I am back with a problem again (please cooperate with my silly questions, i am very new to JavaScript). 
  I am trying for understanding the concept of dynamic tables in JavaScript. Of course i went through Google, but unable to understand the concept :(</p>
  
  <p>What I have is two text boxes (tb1, tb2) for entering number of rows &amp; number of columns respectively. So when I click on the button (b1), it should create the table as per given number of rows and columns in the text boxes. This is what I know so far..</p>
  
  <pre><code>&lt;script type = "text/javascript"&gt;
  
  function createTable(){
  var a = document.getElementById("tb1").value;
  var b = document.getElementById("tb2").value;
  
      if(a=="" || b==""){
          alert("Please enter some numeric value");
          }else{
          .......the creating table code goes here.....   
  
          }
      }
  
  }
  
  &lt;/script&gt;
  </code></pre>
  
  <p>I will be calling createTable function in button onClick="createTable()". 
  Any help is most appreciated. </p>