将值从子节点传递给父节点 [英] pass values from child to parent

查看:103
本文介绍了将值从子节点传递给父节点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当双击网格行

解决方案

将jquery灯箱中弹出的子页面网格视图中的值传递给父页面文本框cs> function setValues()
{
// 弹出窗口元素值
var txt = document.getElementById( text)。 value ;

// 父窗口元素将值设置为
opener .document.getElementById( text)。 value = txt;
self.close();
return false ;
}


pass values from child page grid view thats popup in the jquery light box to parent page textboxes when double click on the grid row

解决方案

function setValues()
   {
//popup window element value
       var txt = document.getElementById("text").value;
      
//parent window element to set value as 
       opener.document.getElementById("text").value = txt;
       self.close();
       return false;
   }


这篇关于将值从子节点传递给父节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆