是否有用于淡出文本框提示的 jQuery 插件?
我想知道是否有一个可用的 jQuery 插件可以在文本框为空时显示提示。
我发现的是: http://remysharp.com/2007 /01/25/jquery-tutorial-text-box-hints/。但是,这仅充当 placeholder
HTML5 属性。我正在寻找的是一个显示多个淡入淡出提示的插件,如 http://www.wolframalpha.com /。 (编辑:我的意思是文本框中的灰色文本 - 不是工具提示。)
虽然自己创建它可能不会太麻烦,但我不赞成重新发明轮子的理论 -那么有人知道这样的插件是否已经可用吗?
谢谢。
I was wondering whether there is a jQuery plugin available which can show hints in a textbox when it is empty.
What I found was: http://remysharp.com/2007/01/25/jquery-tutorial-text-box-hints/. However, this just acts as the placeholder
HTML5 attribute. What I'm looking for is rather a plugin that shows multiple hints with fading, as on http://www.wolframalpha.com/. (Edit: I mean the grey text in the textbox - not the tooltip.)
Although it might not be too much trouble to create it myself, I don't subscribe to the theory of reinventing the wheel - so does anyone know if such a plugin is already available?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我自己做了一个,这样它完全符合我的需求: http://jsfiddle.net/42t6R/2/ 。
它很简单,但效果很好。
编辑:新版本的错误较少,为什么不将其作为插件提交:)
http://plugins.jquery.com/project/fadehints
http://jsfiddle.net/ 9rgHg/2/
I made one up myself, so that it fits my needs completely: http://jsfiddle.net/42t6R/2/.
It's simple but it works just nicely.
Edit: New version which has less bugs, also why not submit it as a plugin :)
http://plugins.jquery.com/project/fadehints
http://jsfiddle.net/9rgHg/2/
这可能会有所帮助:http://www. webdesignbooth.com/15-jquery-plugins-to-create-an-user-Friendly-tooltip/
This may help: http://www.webdesignbooth.com/15-jquery-plugins-to-create-an-user-friendly-tooltip/
嘿,primvdb,这个怎么样?
Hey there primvdb, what about this?
试试这个:http://jqueryfordesigners.com/coda-popup-bubbles/
这应该就是您要找的。
Try this : http://jqueryfordesigners.com/coda-popup-bubbles/
It should be what you're looking for.