0
how to do the following (I don’t have code yet). On the page, I have a table with a Row and 5 Columns and at the end of Table a button (+) and at the bottom of the table a save button. The question is when I click the button (+), I should create another table in the same way and also with the save button and this time, under the button (+) a button(-). How do I do that? If the question has become broad, I can break it, but it’s just an idea on how to do it, so I didn’t find it broad. This will be done in using MVC, Bootstrap and Angularjs(This one I’m not sure because it’s the client who decides this).
Well, thinking about the client side event (click on the "+"), in
Javascript
you can use the methodcloneNode
to copy the table, add a new button, and add the new table in the GIFT. This example may give an idea: https://jsfiddle.net/vasi_32/4wczdykc/2/– Ricardo Pontual
Usually when I need to do this kind of thing use Jquery, clone and Append
– M. Bertolazo
A question, and what about the button event? The clone brings everything, right? In the clone I can add a new button (like Minus(-))?
– pnet