iframeを読み込んでから実行
//読み込み完了後に実行する $('iframe').load(function(){ //コンテンツ取得 var content = $(this).contents(); content.find('#hoge'); //iframeの処理はこの中に書いていく });