I have the following code set

**JavaScript:**

```
$(document).ready(function(){ 
    $("#login").on("click",function() {
        alert($(this).val());
    });
    $("#login").click();
});

```

**HTML**

```
<input type="button" id="login" name="login" value="LOG IN">

```

as expected, this code triggers an alert when the document loads with the value of the login button. 

however, when i try a manual click with the mouse, it does not trigger. 

here is a test i just did: 
![enter image description here](https://i.stack.imgur.com/I4nXh.gif)