Please tell me, there are 2 pages: index.html
, load.html
.
There is a script that is included in index.html which contains the $('div').on()
function for elements that are on the load.html page.
After calling the $('.el').load('load.html')
function, the events stop working. How beautifully can you make the events fire even after updating the page with elements?
P.S. hanging a function on an element and loading a script in the load.html
page is not suitable, the script is the same on the index.html
page.