Firebug and jQuery selectors in an iFrame

Posted by writes_on on Stack Overflow See other posts from Stack Overflow or by writes_on
Published on 2010-03-22T20:01:42Z Indexed on 2010/03/22 20:31 UTC
Read the original article Hit count: 899

Filed under:
|
|

Hi all, I'm working on a web application and using the jQuery plug-in Colorbox to pop up a window that presents a form for editing elements of the parent window. I'm using Firebug to debug my Javascript and jQuery, and I noticed that I can't select an element in my Colorbox HTML form using the jQuery console command line. For instance:

$date = $("#date");

returns nothing when run from the jQuery console command line, even though I have an input element with id="date" and the Firebug "element inspect" pointer can find the element in the iFrame. Is there a way to get Firebug's console to access the elements in an iFrame?

Thanks for your help! Doug

© Stack Overflow or respective owner

Related posts about iframe

Related posts about jQuery