Home >Web Front-end >JS Tutorial >jquery new element event binding problem solution_jquery
The event monitoring of js is different from that of css. As long as the style of css is set, whether it is existing or newly added, it will have the same performance. But event listening is not the case. You must bind events to each element individually.
A common example is when processing tables. There is a delete button at the end of each line. Click this to delete this line.
This line originally had |