Posted By

vagrantradio on 02/16/10


Tagged

iframe javascript html jquery


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

doodledan


GET VALUE OF IFRAME AND INSERT IT INTO A DIV


 / Published in: jQuery
 

finds a specific attribute in an iFrame and loads it to another div on page.

  1. //find the div in the iFrame
  2. var oBody = $("iframe").contents().find("body");
  3.  
  4. //add the iFrame value to another div
  5. $(oBody).appendTo("#another div");

Report this snippet  

You need to login to post a comment.