add-remove-node
v0.1.1
Published
an implementation of the address picker design at https://www.gov.uk/service-manual/design/addresses
Downloads
4
Readme
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 )