Home > Web Front-end > JS Tutorial > A dialog pops up on the page and I want to get the value of the child page from the parent page. What should I do?

A dialog pops up on the page and I want to get the value of the child page from the parent page. What should I do?

PHPz
Release: 2018-10-11 15:00:19
forward
2588 people have browsed it

A function has recently been developed. Click the Add button to pop up a box that supports multiple selections. Then you need to get the ID of the selected row. The dialog is juqery's dialog, and the front-end framework uses easyUI. The solution is as follows:

 var win = this.iframe.contentWindow;//获取当前iframe所在的window对象。
 var doc = win.document;//得到document对象。
var checked = win.$('#mycustormerGridTable').datagrid('getChecked');//获取子页面选中的行

		       		for (var i = 0; i < checked.length; i++) {
						if (selectedIds.indexOf(checked[i].custNo) == -1) {
							selectedIds.push(checked[i].custNo);
						}
					}
Copy after login

For more related tutorials, please visit JavaScript Video Tutorial

Related labels:
js
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Where is js written?
From 1970-01-01 08:00:00
0
0
0
js file code not found
From 1970-01-01 08:00:00
0
0
0
js addClass not working
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template