Using jQuery I am trying to access div id=\"element\".
var iframeInner = jQuery(iframe).find('iframe').contents();
var iframeContent = jQuery(iframeInner).contents().find('#element');
iframeInner contains elements from
other markup goes here
and iframeContent will find for elements which are inside of
other markup goes here
(find doesn't search on current element) that's why it is returning null.