jQuery: Place image in paragraph when body loaded

hankknight
hankknight used Ask the Experts™
on
Using jQuery, after the body has loaded and everything else is complete I want to insert an image:
         <img src="images/icons.png" alt="" usemap="#iconImg" />
into  this paragraph:
         <p id="iconP"></p>
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
try this...
$(document).ready(function(){
	$('p#iconP').html( "<img src=\"images/icons.png\" alt=\"\" usemap=\"#iconImg\" />" );
});

Open in new window

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial