Skip to content

Instantly share code, notes, and snippets.

@WenLiangTseng
Created July 23, 2013 09:13
Show Gist options
  • Save WenLiangTseng/6061060 to your computer and use it in GitHub Desktop.
Save WenLiangTseng/6061060 to your computer and use it in GitHub Desktop.
jQuery 取得在 iframe 裡面的 DOM 元素
jQuery("#myiframe").contents().find("#myContent");
//重點在於加上 contents(),便能搜尋然後抓出 iframe 裡面的內容
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment