Yapapaya / jquery-cloneya

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

Problem with the clone id numbers after #10 #14

Closed jenseo closed 9 years ago

jenseo commented 9 years ago

Hey there! When I clone a number of id:s, let's call it "image", the first clone becomes "image1", the second one image2 etc...

The problem is, when I come to number ten, this becomes the ID:s:

image1111111110 image1111111111 image1111111112 image1111111113 image1111111114

etc...

Any idea why this happens? I'm using a query where I use the ID numbers, and need it to keep increasing without the other digits being added. Like so:

image10 image11 image12

etc...

Is this possible to achieve?

Thanks!

// Jens.

gchokeen commented 9 years ago

Hey Jen, Thanks for notifing us this. I updated the patch on development version file. Credit goes to SO community friend Raj who helped to fix.

jenseo commented 9 years ago

Perfect, works like a charm! Thanks!