jQuery操作iframe的parent window

範例:
function setParentElement(pname, v){
 jQuery(window.parent.document).find("#theForm input[name='" + pname + "']").val(v);
}