JQuery Form Validation Not working on newly created elements

前端 未结 2 1020
我在风中等你
我在风中等你 2021-01-15 01:17

Am having a few issues with the Jquery Validation plug in, and wondering if anyone can assist.

At the moment, the plug in works with any form elements currently on t

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-15 01:30

    This is because $("#addRelease").validate adds event Handlers to your HTML Elements the time it is called. You have to call it again after inserting new elements.

提交回复
热议问题