Here is my current solution, although it does not work perfectly.
<div class="hidden" id="iframes"></div>
$(function() {
var urls = ["url one", "url two", "etc..."];
$(urls).each(function(index, url) {
var iframe = $("<iframe />").attr({ src: url });
$("#iframes").append(iframe);
});
});
Jimmy source
share