elo80ka / django-dynamic-formset

A jQuery plugin that allows you dynamically add new forms to a rendered django formset.
675 stars 309 forks source link

Input field id show NaN instead of increased number #112

Closed pulkitsharma28 closed 8 years ago

pulkitsharma28 commented 8 years ago

The JS works fine with adding rows in a table for inlineformset. However Id is not coming properly. Have included formset.js in media folder. Using Django 1.8 with Python 3.4.

Output should be id_expenseitems1-2-Product and getting id_expenseitems1-NaN-Product. Any solution!!!

pulkitsharma28 commented 8 years ago

Issue was not setting prefix.