Yapapaya / jquery-cloneya

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

Clone added Two items per one click #21

Closed sakthiemail closed 9 years ago

sakthiemail commented 9 years ago

When I add one items, it added two items. Can you check the following example? http://jsfiddle.net/f6yLw8ch/13/

Thanks

josepablomadrigal commented 9 years ago

how you delimit the times of deleting? with the original example it delete me all the form

actual-saurabh commented 9 years ago

@blaskxx Please create a separate ticket. We won't help you in this one.

actual-saurabh commented 9 years ago

@sakthiemail This is happening because cloneya is not yet equipped to handle nesting with the same class identifiers. So, you have a .clone-inner with a clone and delete button and inside that another .clone-inner with clone and delete buttons with the same class names.

This will be added in the future. However, for now, make sure all the nested levels have different class names, like your fiddle that I have modified: http://jsfiddle.net/f6yLw8ch/21/

sakthiemail commented 9 years ago

Thank you for your help. Thank you very much.

Thanks,