GET VALUE OF IFRAME AND INSERT IT INTO A DIV


/ Published in: jQuery
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.