JQuery Tooltip悬停问题 [英] JQuery Tooltip hover problem
问题描述
我有3个文本框和一个按钮,如下面的链接
http://jqueryui.com/工具提示/#形式
但问题是我希望工具提示只有当我点击按钮而不是悬停或焦点时才可见,当我点击侧面或焦点在文本框上时工具提示需要消失,而且我想一个接一个地验证,而不是一次性验证
例如,如果我没有输入它需要输入的所有字段输入名字。
如果我输入了要求输入姓氏的第一个名字,如果我没有输入第一个名字,则需要再次询问名字。这意味着它需要逐个验证
code也存在于该链接上
I have 3 text boxes and one button like in below link
http://jqueryui.com/tooltip/#forms
But the problem is i want tooltip to be visible only when i click on the button not on hover or focus and when i click out side or focus on text box the tooltip needs to be disappear and that to i wanted to validate one by one not all at once
for example if i am not entered all the fields it needs to ask enter first name.
if i entered the first name it needs to ask enter last name if i am not entered the first name it again needs to ask first name .that means it needs to validate one by one
code is also present on that link
推荐答案
我想您更关心作为工具提示的验证消息。既然,你正在使用jQuery,你需要看看jQuery验证插件。使用该插件,您可以设置不同的验证。 http://jqueryvalidation.org/ [ ^ ]
而且,正如您在此处所提到的,jQuery Validation Plugin的实现将是对你有帮助 -
http://jquery.bassistance.de/validate/demo/ themerollered.html [ ^ ]
希望这会有所帮助。
谢谢
I guess you are more concerned about validation messages working as tooltip. Since, you are using jQuery you need to have a look into jQuery validation plugin. With that plugin you can set different validations.http://jqueryvalidation.org/[^]
And, as you have mentioned here this implementation of jQuery Validation Plugin would be helpful for you -
http://jquery.bassistance.de/validate/demo/themerollered.html[^]
Hope this will help.
Thanks
这篇关于JQuery Tooltip悬停问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!