I have a jQuery snippet as below:
$.ajax({ .... success: function(myContent) { ..... $(\'\').append
I think this is what you are looking for:
$('').appendTo('body'); $('iframe').contents().find('body').html(myContent);
Demo: http://jsfiddle.net/vbNGA/1/