Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 401 Bytes

iframe_content.md

File metadata and controls

9 lines (7 loc) · 401 Bytes

Access iframe content

$('iframe').contents().find('div');
  • $('iframe') - jQuery selector for needed iframe
  • contents() - will return jquery content wrapper (respect same origin for this to work)
  • find('div') - example of selecting first div element inside chosen iframe (you can use any kind of jquery functions here)