Horje
how to toggle hover display text of button on click Code Example
how to toggle hover display text of button on click
// Use title attribute to show text on hover
<button type="button" id="eye" title="Show Password" class="btn btn-light" onclick="show()"> <i class="fa fa-eye"></i> </button>

<script>
    function show() {
        var y = document.getElementById("eye");
        if (x.title === "Show Password") {
            y.title = "Hide Password";
        } else {
            y.title = "Show Password";
        }
    }
</script>




Html

Related
element is no longer attached to DOM. Unable to animate. Code Example element is no longer attached to DOM. Unable to animate. Code Example
html vase Code Example html vase Code Example
Aria hr role Code Example Aria hr role Code Example
hello world html template download file Code Example hello world html template download file Code Example
video slider html Code Example video slider html Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8