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
精彩评论