Skip to content

Instantly share code, notes, and snippets.

@reedobrien
Created May 8, 2012 15:07
Show Gist options
  • Save reedobrien/2636058 to your computer and use it in GitHub Desktop.
Save reedobrien/2636058 to your computer and use it in GitHub Desktop.
get an element within an iframe
<!--
name the frame: <iframe name="myframe" ...>
then you can reach into the frame like so (using jQuery)
-->
$(frames['myframe'].document).find('.someClass').attr('style', 'display: none')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment