jquery-validation / jquery-validation

jQuery Validation Plugin library sources

Home Page:https://jqueryvalidation.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not working on dynamically added elements with name array name="date[]"

ateequrrahman97 opened this issue · comments

Subject of the issue

When we add elements through js. The validator could not apply on it and the form is submitted.
These elements are with the array name like this name="event_date[]".
I have added rules
'event_date[]': { required: true, },

Your environment

  • version of jquery-validate:
  • which browser and its version:

Steps to reproduce

Expected behaviour

Actual behaviour

i have the same problem my fields name is 'item_row[theID][]'

This issue/proposal has been automatically marked as idle and stale because it hasn't had any recent activity. It will be automatically closed if no further activity occurs. If you think this is wrong, or the problem still persists, just pop a reply in the comments and one of the maintainers will (try!) to follow up.
Thank you for contributing :)