I'm having a problem in jquery, I have a form with multiple div that have multiple inputs and repeats themself when i click on add button, the problem is the inputs that repeats have names in format <input name="brand_meta[designer][1][name]" type="text" class="form-control" value="">
when I press on add button I want them to repeat itself with new name brand_meta[designer][2][name]
my fiddle is here http://jsfiddle.net/prayaspanchuri/b2wskq1w/
Thanks
name="brand_meta[]". Otherwise, you will have to use REGEX to update the count yourself.band_meta[designer][]? Most server languages will automatically convert these into an array.