Hi Ami

you can access an iframe with:
  var frame = window.frames[0].document;
-or-
  var frame = $("#iframe")[0].contentDocument;

  var div = $("div", frame);

just remember to wait until the iframe has been loaded.

by(e)
Stephan



2009/2/8 Ami <aminad...@gmail.com>:
>
> Can I use jQuery to work with elements in other frames?
>
> For Example:
>
> <html>
> <iframe id=frame1></iframe>
>
> <script>
> $("#frame1 document")
> OR
> $(document, $("#frame1"))
> </script>

Reply via email to