如何在不使用ajaxtool的情况下在文本框中显示提示文本 [英] how to show hint text inside textbox without using ajaxtool

查看:60
本文介绍了如何在不使用ajaxtool的情况下在文本框中显示提示文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<asp:TextBox ID="TxtToDate" runat="server" ToolTip="yyyy/mm/dd">

推荐答案

好吧,如果你将它用于网页,请创建一个隐藏的< div>你提示的元素。使用onmouseover(或相关的东西)通过更改可见性属性来显示提示。使用onmouseout将属性设置回隐藏状态。没有ajax,没有ASP:只是javascript w / DOM。计算出消息的定位
Well,if you''re using this for a web page, create a hidden <div> element with your hint. Use onmouseover (or something relevant) to display your hint by changing visibility attribute. Use onmouseout to set attribute back to hidden. No ajax, no ASP: just javascript w/DOM. Work out your positioning of the message


这篇关于如何在不使用ajaxtool的情况下在文本框中显示提示文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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