Do you have too many div positioning window internal pagination functions? This is the case: click the Add button-> The "position 1" window is displayed (The list contains too many content and requires pagination) -> click the "select" button in the "1 p" positioning window to go to the "2 p" window (the list contains too many content and requires pagination )...
If there is only one p, js controls pagination, but the problem is that two p Windows, Windows. onload = function () {} is loaded in the browser order. it can only be valid for window 2 p, but window 1 p does not work.
Reply to discussion (solution)
You should use AJAX
It is a window. onload conflict problem. there is no good solution yet
Try ajax
Thank you .. You don't need ajax. you can modify it like this: window. onload = function () {a (); B ();} separate the content into functions a and B and then call them.