开发者

who to fill detail input base on child window popup

开发者 https://www.devze.com 2023-01-21 13:26 出处:网络
I have a parent window for entry transaction that havs customer ID 开发者_JAVA百科field input. User have to click find button beside it and new window will be opened and user can findout there. Whenev

I have a parent window for entry transaction that havs customer ID 开发者_JAVA百科field input. User have to click find button beside it and new window will be opened and user can findout there. Whenever user choose selected customer, the parent will display some information of the customer like name, address may be, and detail of claim. Anybody can show me the link about the case? Or suggest me the outline? Many thanks


try this:

var $parent = $(window.opener.document); //or parent.document.body
$parent.find("#name").val("xxx").end()
       .find("#address").val("yyy");
window.close();

I hope this helps

0

精彩评论

暂无评论...
验证码 换一张
取 消