Im new for Html and javascript. I want to create dynamic row with input fields in table while click button,that number of row given from user. In my code, row created dynami
First of all You are missing in wrapping the th, wrap the th in tr, and for new rows to append the previous row you have to use the insertRow porperty of javascript.
th
tr
rows
previous row
insertRow
Here is your modified snippet
Thanks
Click Me!