Adding a single row in a table (html) and deleting it, using JavaScript, is simple. But, is it possible to add multiple rows, like 2 or more, by calling the addrow function only once? The added rows will have different elements, like first row will be having a textfield, the other a textarea and like that…
Is there any other alternative in html to do that?
I solved it by myself by writing code similar to this :
adding three rows,first with a textfield,second having a textarea and the third having a button
Each time the for loop runs, a new html element is added in the table and hence I got three rows added dynamically each having a different element .