I have a problem with multipage Webform in which all previously loaded scripts are executed when page is changed.
This should only be executed on that “page” (page that has that field).
And now, when I’m trying to change the page it executes this script and causes an error since “bind function is undefined” or similar (and AJAX overlay stays on page).
It seems to me that previosly loaded scripts are executed but on the new DOM (AJAX returned form markup) and in different order than on the first page load.
How could I prevent this from happening? Same goes for previous page that it is executing