var doc = layero.find('iframe')[0].contentDocument; var test= $(doc).find("input[name='test']").val();