Bind Events to disabled element-1
by Rohit Patel
HTML
<body>
<button disabled onmouseover="showToolTip()" onmouseout="hideToolTip()">
I am disabled
</button>
<br>
<span id="tooltip"></span>
</body>
JavaScript
function showToolTip() {
document.getElementById("tooltip").textContent = "I am tooltip text";
}
function hideToolTip() {
document.getElementById("tooltip").textContent = "";
}