jquery操作父窗口设置元素

       //jquery操作父窗口设置元素
       var scenic = {
                "id": "",
                "sceniccode": "",
                "scenicname": ""
                };
       
       
        var cid = $("input[name='checkbox_template']:checked").val();
       
        scenic.id = cid;
        scenic.sceniccode = jQuery("#sceniccode"+cid).val();
        scenic.scenicname = jQuery("#scenicname"+cid).val();
       
        window.parent.jQuery("input[name='scenicid']").val(scenic.id);
        window.parent.jQuery("input[name='sceniccode']").val(scenic.sceniccode);
        window.parent.jQuery("input[name='scenicname']").val(scenic.scenicname);
               
        //window.returnValue = hotel;
        window.parent.jQuery("#iframeDialog").dialog("close");

你可能感兴趣的:(JavaScript,jquery)