Solutions Log

So I only have to figure things out once.

Determine if a jQuery Click Event Was Triggered by a User or a Script Calling the .click() Method

1
2
3
4
5
6
7
$('.button').click(function(e) {
    if (e.originalEvent) {
        // user click
    } else {
        // .click()
    };
});

Source

Comments