I would like to get the .html()
of an iFrame. But I only want the code of an specific element <img id="picture">
. How can I get the HTML but have only the <img id="picture">
with all parameters.
Something like:
$('#mydiv').find("iframe").contents().find("body").html(/*only get html of image here*/);
Thank you!