當我單擊密碼textbox
時,出現tooltip
出現問題。任何人有任何建議爲什麼jquery
代碼不起作用?單擊文本框時出現提示框
<div class="form-group">
<input type="password" name="password" id="password" tabindex="1" class="form-control" placeholder="Password" required />
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script> <!--jquery-->
<script>
$(document).ready(function() {
$('#password').on({
"click": function() {
$(this).tooltip({ items: "#password", content: "Displaying on click"});
$(this).tooltip("open");
},
"mouseout": function() {
$(this).tooltip("disable");
}
});
});
</script>
嘗試更換'$(本).tooltip( 「禁止」);用'$(本).tooltip'( 「親密」);'看看會發生什麼。 – TechnoCF
嗨TechnoCF似乎沒有執行時,我用我的替換。 – steve
這個想法是一個工具提示,顯示用戶的消息,他們的密碼必須是某些字符等 – steve