rilwis/meta-box — pull request #458 by ThemePlugger (2014-06-15 15:20:47+00:00)
Title: Allow multiple fields to be incremented properly

I've wrapped the $input in an each loop to capture all the fields that would be cloned and this would make way to multiple fields being cloned properly in terms of name and id field.

Initially, the current javascript code treats multiple fields to have the same input name and id.

So if there is this fields:

If cloned, it would end up like this:

The above proposed fix will fix this issue.