开发者

who to fill detail input base on child window popup

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜