Article From:

With $().Html (“< div> < /div>”);
This way, after dynamically adding the form elements, why is it difficult to bind plug-ins again?

Answer 0:

You are adding plug-ins to dynamically add outside calls, calling a plug-in once in dynamic addition, which is equivalent to calling a plug-in after the generation is generated if you want the plug-in to come into effect once.

Answer 1:

I also encountered such a problem, and finally I chose to use only one ID to call the date plug-in once, and then display it with pop-up.

Answer 2:

You can take a look at jQuery’s delegate, which can solve your problem.

Answer 3:

Inserting such a large paragraph at a time is too unfriendly to write code.
An event entrustment can be used to solve the problem

Leave a Reply

Your email address will not be published. Required fields are marked *