First of all we needs to know, whether the Iframe is from SAME DOMAIN.
If yes, in jquery we can use following code for accessing the Iframe contents.
If the Iframe is from different domain, you should get permission first.
Permission for accessing the contents inside the Iframe is needed.
Else you will get permission error while accessing the iframe contents.