I'm using rails to generate a form that allows the user to click a button to add a new row to a table. As of right now, the user can click the add button and a new row appears.
The trouble I'm having is with a column that is using autoNumeric to mask percent values. The JS isn't applied to the columns that the user creates dynamically. I'm using classes so I'm confused why the autoNumeric masking isn't being applied to the new rows as the user is adding them. The 'percentage' class is working on other parts of the form.
Each row that is added has class="fields" on it. I have tried JS's onClick but didn't get successful results.