Hi, I had a similar problem a couple of days ago and this worked for me... iframe = $('iframe.CLASS_NAME')[0]; hope it helps, Mike
On Jul 26, 2: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?