文本框中的文本消失在单击它有什么想法吗?暂无答案 [英] textbox text disappear in click on it any ideas ? no answers yet

查看:69
本文介绍了文本框中的文本消失在单击它有什么想法吗?暂无答案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要此文本框文本在单击时消失(这是文本框的源代码):

i need this textbox text to disappear when i click on it (here is the source code for the textbox):

<asp:TextBox ID="TextBox5" runat="server" Style="z-index: 116; left: 38.5%; position: absolute;
                top: 45%" Width="66px">Type Year</asp:TextBox>



任何想法????????????????



any ideas ????????????????

推荐答案

您可以在客户端通过处理hte focus事件来做到这一点,并且设置为".您不应该期望发布自己的随机请求,因为它们太懒了,无法自己研究,让我们为您完成工作.
You can do this on the client side by handling hte focus event, and setting to "" there. You should not expect to post your random requests that you''re too lazy to research for yourself, and have us do your work for you.


最好的方法是使用javascript /jquery
best way to do this would be with javascript/jquery


这篇关于文本框中的文本消失在单击它有什么想法吗?暂无答案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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