Problem with access to control properties in Multibox

霸气de小男生 提交于 2019-12-12 02:56:12

问题


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.

There is example of it.

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


回答1:


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



来源:https://stackoverflow.com/questions/1572696/problem-with-access-to-control-properties-in-multibox

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!