从厚框控件中获取值
我在厚盒上有隐藏字段,当我关闭厚盒时我需要获取隐藏字段的值,当关闭厚盒时此方法调用
function tb_remove(parent_func_callback) {
parent.document.getElementById('hdf').value// I need value of hidden field here
请告诉我如何获取厚盒上的隐藏字段值?
例如我有页面abc,我从页面abc单击heyperlink,然后页面xyz作为厚框打开,在xyz厚框上我有隐藏字段名称hdf,现在我单击厚框的关闭按钮,在thickbox.js中调用tb_remove文件中,我需要在js文件中获取hdf的值以在abc页面中使用。
谢谢
I have hidden field on thick box, when I close thick I need to get the value of my hidden field, when close thick box this method calls
function tb_remove(parent_func_callback) {
parent.document.getElementById('hdf').value// I need value of hidden field here
please tell me how can I get hidden field value that is on thick box?
e.g I have page abc, I click on heyperlink from page abc, then page xyz open as thick box, on xyz thickbox I have hidden field name hdf, now I click on close button of thick box, tb_remove is called that's in thickbox.js file, I need to get the value of hdf here in js file to use in abc page.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,如果我正确理解了这个问题,“hdf”是隐藏字段的 ID,所以这将为您提供值...如果我误解了,请告诉我。
我认为厚盒子是指你想要在 iframe 或类似的东西中获得一个控件......这就是方法。
或者简单地说,只需要通过 ID 获取控件的值...
Well if I understand the question correctly, 'hdf' is the ID of the hidden field, so this will get you the value then... If I have misunderstood let me know.
I assume by thick box you mean you want to get a control inside an iframe or something similiar... here's how.
Or simply, just need to get a value of a control by ID...