Can you formulate your question a little better ??

----- Original Message ----- From: "Tommy1402" <blackjen...@gmail.com>
To: "jQuery (English)" <jquery-en@googlegroups.com>
Sent: Monday, August 03, 2009 12:22 AM
Subject: [jQuery] How to access an iFrame ID from within



Sorry if report....

I have an iFrame

<iframe id="myframe" src="index.php"></iframe>

it loads a content, how can I access the iFrame ID, which is "myframe"
from inside index.php?
I have tried:

//index.php
jQuery(document).ready(function() {
 alert(jQuery('#myframe').attr('id'));
});

but not succeed.

Reply via email to