- Code: Select all
- first why they have to build and add their button dynamically
- why the data-prototype has to be an attribute? couldn't you just put the code within a random invisible div and take it from there?
- why not do something like this $(".divClass").attr("data-prototype"); and then add this as a new row?