I'm facing a issue getting dynamically loaded elements in the dom that I cannot find the right answer to solve this issue.
Let's say I have an MVC architecture where I load all my views into a container div.
So I load a view which also has a ul element, now I create multiples li dynamically and when I call.
ul = document.getElementById("idelement");
I get undefined, even if the view is already loaded.
I tried using, (document).ready, event delegation on(load), among other techniques and I cannot find the rigth solution for this.
Any advices?