try this: iframe.contents().find('body p').html()
On Sun, Jul 26, 2009 at 3:39 PM, mkmanning<michaell...@gmail.com> wrote: > > Is your iframe on the same domain? If not, you can't do this. > > On Jul 25, 10:39 am, kknaru <isai...@gmail.com> wrote: >> hi there, i just started working with iframes and i'm stucked :D >> >> so...i have this code inside a html file: >> >> <iframe id="myframe"> >> <p>text</p> >> </iframe> >> >> what i'm trying to do is to grab that paragraph text(using jquery). >> >> by now i tried something like this: >> >> $("#myframe").contents().find("p").html(); >> >> but....with no result :( >> >> does anyone know the answer?