Bind Events to disabled element-2
by Rohit Patel
HTML
<body>
<div onmouseover="showToolTip()" onmouseout="hideToolTip()" style="position: absolute;width: 84.66px;height: 18px;"></div>
<input id="theButton" type="button" value="I am disabled" disabled="disabled">
<br>
<span id="tooltip"></span>
</body>
JavaScript
function showToolTip() {
document.getElementById("tooltip").textContent = "I am tooltip text";
}
function hideToolTip() {
document.getElementById("tooltip").textContent = "";
}