如何使用JavaScript隐藏TextBox滚动 [英] How to hide TextBox Scrolling using javascript

查看:53
本文介绍了如何使用JavaScript隐藏TextBox滚动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个文本框,它的属性是TextMode是Vertical.在打印弹出窗口中,我可以隐藏文本框的滚动.
请任何人帮助我.............

I have a Textbox and it''s property is TextMode is Vertical. in print popup i can hide the Scrolling of the TextBox.
Please any one help me.............

推荐答案

您可以使用javascript或jquery更改任何控件的任何属性.但是,如果它是一个文本框,我不确定是否可以隐藏滚动条.

好的,因为我知道如何使用Google并非常关心检查,所以我发现您可以

txtBox.Attributes.Add("style","overflow:hidden");
You can change any attribute of any control using javascript or jquery. But if it''s a textbox, I''m not sure if you can hide scrollbars or not.

Ok, because I know how to use google and cared enough to check, I found out you can

txtBox.Attributes.Add("style","overflow :hidden");


var txtDescription = document.getElementById(& lt;%= txtDescription.ClientID%& gt; )
txtDescription.style.overflow =''隐藏'';
var txtDescription= document.getElementById("<%=txtDescription.ClientID %>")
txtDescription.style.overflow=''hidden'';


这篇关于如何使用JavaScript隐藏TextBox滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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