I’ve loaded file in div
$("#div").load("file.txt");
That file has html images .
I want to access them by $(‘#div>img’) (or other selectors), but nothing happens. If they were in page initially, there are no problems.
How can you access loaded content by jQuery as part of the usual page?
See jquery doesn’t see new elements for one possible problem you might be having. Use the
changemethod to wait until they enter the DOM. e.g.