43
rated 0 times
[
48]
[
5]
/ answers: 1 / hits: 72632
/ 13 Years ago, thu, july 14, 2011, 12:00:00
I have a handler attached to an event and I would like it to execute only if it is triggered by a human, and not by a trigger() method. How do I tell the difference?
For example,
$('.checkbox').change(function(e){
if (e.isHuman())
{
alert ('human');
}
});
$('.checkbox').trigger('change'); //doesn't alert
More From » jquery