Yapapaya / jquery-cloneya

A jquery plugin to clone DOM elements
MIT License
76 stars 28 forks source link

handle clone delete buttons #2

Closed gchokeen closed 10 years ago

gchokeen commented 10 years ago

When default view there is no need of the delete button or at the end of clone limit there is no need of add button. That might confuse user. You have already handle to keep at least one default field. But I added the code to handle the buttons also. I might not written that code in optimized way. But it's useful to have that functionality.