显示/隐藏帮助文本(文本框提示) [英] Show/hide help text (Textbox Hints)
本文介绍了显示/隐藏帮助文本(文本框提示)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在文本框中显示提示,当该文本框获得键盘焦点时消失?
How do you display a hint in a textbox that disappears when the textbox gets keyboard focus?
推荐答案
您可以使用现有的jQuery(javascript库)插件来打勾.
雷米·夏普的解决方案 [
You can use an existing jQuery (javascript libary) plugin to make that tick.
Remy Sharp''s solution[^]
Cheers.
听起来像您需要带有水印的文本框.看看以下内容: TextBoxWatermark演示 [
Sounds like you need a textbox with Watermark. Have a look at this: TextBoxWatermark Demonstration[^]
这篇关于显示/隐藏帮助文本(文本框提示)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文