Hi There,
I have some jquery that loops manipulates a bunch of html. Part of this process involves taking the html content of a div and copying it elsewhere. The problem is that jQuery seems to remove the img tag from the html during the copying process.
The img tag looks as follows:
<img src='/images/mouse/mouse_three.gif' alt='The retired mouse' width='435' height='200' />
The jQuery in question looks as follows:
('<div id="person-text-'+i+'" class="text">'+$(text).html()+'</div>').appendTo('#people-holder');
With $(text).html() being the div that contains a paragraph of text and the already mentioned image. If I log $(text).html() to the console, the text is present, but the image is gone (white space remains).
Any ideas?