title: add multiple textbox using button click in javascript
body: <p>Hello I am  trying to add multiple textbox when click on button. i have write following HTML code.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
   function addRow(btn) {         
       var parentRow = btn.parentNode.parentNode;
       var table = parentRow.parentNode;
       var rowCount = table.rows.length;
       var row = table.insertRow(rowCount);
       var cell1 = row.insertCell(0);
       var element1 = document.createElement("input");
       element1.type = "text";
       cell1.appendChild(element1);
       var cell3 = row.insertCell(1);
   }
  &lt;/script&gt;
  &lt;table&gt;
     &lt;tr&gt;
        &lt;td&gt;&lt;input type="text" name="data1" value="abc" /&gt;&lt;/td&gt;
        &lt;td&gt;&lt;button type="button" onClick ="addRow(this)"&gt;Add&lt;/button&gt;&lt;/td&gt;
     &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>i dont know how to do . kindly tell me how to do this stuff .... thank you in advance</p>