I ve Trial Solutions found on other similar threads, but can ted them work. 我ve一个boot子,在残疾状态下,应当有一个工具让使用者知道它为什么会致残。 我理解,一个残疾州有一个县,它防止 mo化事件达到纽伦要素,而如果有人看我的守则,让我知道我做错做什么,我非常赞赏这样做。 解决任何间隔问题,我曾用自动制成的代码,但显示所有胜利,我尝试人工调整!
// Grab button from DOM
let resultsBtn = document.getElementById("get-results-btn");
// if conditional is met, disable button
$(resultsBtn).prop("disabled", true);
// then, add tooltip
$(resultsBtn).attr("data-toggle", "tooltip");
$(resultsBtn).attr("title", "you may only submit this form once");
// add css rules to make tooltip work on disabled button
$(resultsBtn).css("pointer-events", "none");
/* ====================================== */
/* Button styling */
/* ====================================== */
#get-results-btn {
// insert styling rules for color, size, etc. here, plus the following rules:
cursor: pointer;
user-select: none;
-webkit-user-select: none;
touch-action: manipulation;
pointer-events: none; ////// Added this based on [S/O thread][1]
}
#get-results-btn .btn[disabled] //// I pulled this line from [S/O thread][1], but I don t think the class applies to my code?
<button id="get-results-btn" class="btn standard-btn-style">
Get Results
</button>