Is this a bug in jQuery Iframe code or expected behaviour? -


in jquery way access iframe

$("#myiframe").contents(); 

say wanted "#mydiv" "#myiframe", use

$("#myiframe").contents().find("#mydiv"); 

in code i've been writing had

var $savequery = $("#myiframe").contents().find("#mydiv"); var $innerquery = $savequery.find("#myinnerdiv"); 

did not work. using debugger inspected $savequery object. innerhtml always

"                         " 

even when looking @ filled content on screen. after hair pulling changed , did work

var $savequery = $("#myiframe").contents().find("#mydiv"); var $innerquery = $("#myiframe").contents().find("#myinnerdiv"); 

is bug or expected behavior? i'm using version 2.2.0


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -