I have a problem, which gives me a big question.
I'm developing a website that has a default structure, which makes GET calls in Jquery
to fetch new HTML pages for certain parts of the page.
Example: I click on a link and the page change is done without the page reloading.
But there's the problem. Pages added later by Ajax, which have some elements that use code in JavaScript
, such as slides, graphs, maps, among other elements, are added correctly, but these elements do not work, only if they are incorporated right at the beginning of the site (as soon as the site is loaded).
What should I do to make sure this does not happen and that these elements work correctly?