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');
});
Written by Chetan
Related protips
1 Response
Geez it should be reversed for easy memorize.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Event
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#