I want to perform some functions on iframe. However, the functions does not work when the page is loaded.
I suppose that the functions are triggered before iframe elements are rendered.
Either $(window).load
or $(document).ready
perform before iframe are set up.
So, I would like to ask how to perform jQuery functions after iframe elements are rendered.
My source code is like this;
$(document).ready(function() {
doSomething($("ID of iframe"));
});
$("iframe").ready()
does not work either. In addition, I would like to apply this function for not all iframe fields, so $("iframe").each()
is not appropriate.
I already read and tried these questions, but any of them did not work.
Wait for iframe to load in JavaScript