0.1.1 • Published 6 years ago
add-remove-node v0.1.1
Helper function for adding and removing nodes from lists
Using it
Include the script (dist/addRemoveNode.js) in your page and call it, like this:
addRemoveNode(<selector for add elements(s)>, <selector for remove element(s)>, <selector for node to clone>)
the remove element should be a descendant of the node element ( that way you will be able to remove elements from the middle of the list )