Sharma Raushan

Sharma Raushan

  • NA
  • 527
  • 15.2k

Add new row with input fields on button click

Nov 5 2020 11:38 AM
I have a table 
  1. <table id="tblOrder">  
  2.     <tr>  
  3.         <th>Id</th>  
  4.         <th>Name</th>  
  5.         <th>Order Type</th>  
  6.         <th>Order Date</th>  
  7.     </tr>  
  8.     <tr>  
  9.         <td>1</td>  
  10.         <td>Gupta Traders</td>  
  11.         <td>Special</td>  
  12.         <td>20/10/2020</td>  
  13.     </tr>  
  14.     <tr>  
  15.         <td>2</td>  
  16.         <td>Shrikant Steel</td>  
  17.         <td>General</td>  
  18.         <td>19/10/2020</td>  
  19.     </tr>  
  20.     <tr>  
  21.         <td>3</td>  
  22.         <td>Payal Furniture</td>  
  23.         <td>Special</td>  
  24.         <td>18/10/2020</td>  
  25.     </tr>  
  26.   
  27. </table>  
On button click, a new row should be added with appropriate input field to enter data. 

Answers (1)