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
What you did was setting new value to the table each time. what you actually would like to do is appending data to the table using "appendChild" function. this can also be created, even more easily, using
here is a working fiddle with the change (using js appendChild):
i would recommend learning to use jquery. anyway, here is some info about the functions i mentioned: jquery and their "append" function.
info about js appendChild - http://www.w3schools.com/jsref/met_node_appendchild.asp jquery append - http://api.jquery.com/append/