Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如标题中所述,我需要在单击输入字段时显示 qtip 工具提示,如果输入的字符超过 2 个,则隐藏 qtip
要根据输入的长度显示/隐藏 qTip,请使用以下命令:
$('#textbox').qtip(); $("#textbox") .bind("focus keyup change", function () { $(this).qtip('toggle', ($(this).val().length <= 2)); });