在Multibox中访问控件属性的问题 [英] Problem with access to control properties in Multibox

查看:65
本文介绍了在Multibox中访问控件属性的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用multibox-component来创建类似于lightbox的div.但是我遇到了问题.我在该div中放置了ID为"tbx_position"的文本框.我在文本框中输入了一些符号,然后尝试通过javascript函数读取值(它必须警告document.getElementById('tbx_position').value).每次该值为空.

I used multibox-component to create lightbox-similar div. But I faced problem. I placed textbox with id ‘tbx_position’ in that div. I entered some symbols in textbox and then tried to read value via javascript-function (it had to alert document.getElementById(‘tbx_position’).value). Every time that value was empty.

示例.

此外,如果我将div放在asp:Button中,则服务器OnClick-eventhandler不会着火. 有什么主意吗?谢谢.

Furthermore, if I place in the div asp:Button, server OnClick-eventhandler doesn’t catch fire. Is any idea, what’s reason? Thanks.

推荐答案

尝试添加<form>& </form>标记到您的页面.

Try adding the <form> & </form> tags to your page.

这篇关于在Multibox中访问控件属性的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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