如何将onfocus添加到我的文本框中 [英] How to add onfocus to my textbox
本文介绍了如何将onfocus添加到我的文本框中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试将onfocus添加到gridview中的文本框中。无论我在该行中单击哪个文本框,div都会在第一个单元格中显示
展开 | 选择 | Wrap < span class =codeDivider> | 行号
解决方案
< blockquote>你使用什么JavaScript框架?一些ASP.net addOn或类似? ...你发布的代码远非任何标准JavaScript。
我在asp.net工作 - C#。就像我说的,我不知道任何javascript。所有这些功能都是document.getelemntbyid(''leftDiv'')。style.visibility =''visible''
如果你有别的东西可行,我很想听。
我刚刚意识到我发布了我的.cs页面上的内容,而不是javascript函数 - 那只是调用该函数。
展开 | 选择 | Wrap | 行号
I am trying to add onfocus to my textbox that is in a gridview. No matter which textbox I click in that row, the divs become visible in the first cell only
Expand|Select|Wrap|Line Numbers解决方案what javascript framework do you use? some ASP.net addOn or similar? ... the code you posted is far from any standard JavaScript.
I''m working in asp.net - C#. Like I said, I don''t know any javascript. All those functions do is document.getelemntbyid(''leftDiv'').style.visibility =''visible''
If you have something else that would work right, I''d love to hear.
I just realized I posted what was on my .cs page, not the javascript function - that''s just calling the function.
Expand|Select|Wrap|Line Numbers
这篇关于如何将onfocus添加到我的文本框中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文登录 关闭
扫码关注1秒登录发送“验证码”获取 | 15天全站免登陆