获取IFRAME的值并将其插入到DIV中

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了获取IFRAME的值并将其插入到DIV中相关的知识,希望对你有一定的参考价值。

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");

以上是关于获取IFRAME的值并将其插入到DIV中的主要内容,如果未能解决你的问题,请参考以下文章