Javascript 如何在确认密码的工具提示中显示错误消息?

Javascript 如何在确认密码的工具提示中显示错误消息?,javascript,html,jquery-tooltip,Javascript,Html,Jquery Tooltip,是否有任何方法可以在工具提示中显示密码未匹配错误。 还有一件事,当密码不匹配时,我需要显示错误窗口,它应该类似于在必填字段抛出时显示错误的同一弹出窗口。 <input type="password" id="password2" name="password2" class="form-control" maxlength="100" data-msg-required='Bevestig je wachtwoord' data-rule-required=true data-rul

是否有任何方法可以在工具提示中显示密码未匹配错误。 还有一件事,当密码不匹配时,我需要显示错误窗口,它应该类似于在必填字段抛出时显示错误的同一弹出窗口。


 <input type="password" id="password2" name="password2" class="form-control" maxlength="100"   data-msg-required='Bevestig je wachtwoord' data-rule-required=true data-rule-equalto="#password1" data-rule-minlength="6" data-msg-minlength='Voer minimaal 6 karakters in'>      
我建议使用“醉醺醺”的jquery工具提示,()检查一下,这真的很简单而且有用。