Is it possible using jQuery to create an <iframe>
element and append html content to it without having src
attribute specified?
The problem is I need to create an iframe
and I already have its content (I get it as AJAX response). Unfortunately, I can't specify the URL I get response from as src
attribute. I'd like to do something like:
$('<iframe id="someId"/>').append(response).appendTo("#someDiv");