Last Updated: February 25, 2016
·
13.88K
· chetan_raj

jQuery - How to find if event is triggered or clicked

$(element).click(function(e){   
    e.isTrigger//undefined when the element is clicked
    e.isTrigger //true for $(element).trigger('click');
});

1 Response
Add your response

Geez it should be reversed for easy memorize.

over 1 year ago ·