How to Check if Event was Triggered or Native?
$(‘button’).click(function(event, wasTriggered) { if (wasTriggered) { alert(‘triggered in code’); } else { alert(‘triggered by mouse’); } }); $(‘button’).trigger(‘click’, true);
by Subbu ·
Tags: Check if Event was Triggered or Native
by Subbu · Published June 21, 2013
by Subbu · Published September 14, 2013
by Subbu · Published September 10, 2013
More