Home >Web Front-end >JS Tutorial >JQuery two methods to solve the problem that the newly created elements cannot be traversed_jquery
Using jQuery’s each method to traverse the newly created elements sometimes does not work.
Needless to say the reason, anyone who often uses JavaScript will know that there are roughly two solutions:
1. As soon as you create the element, use the each method immediately
2. Use the setTimeout method and then use the each method
after the page is loaded for a period of time.