I have the following code where the change on HTML Select can happened via trigger or by changing it manually.
My question is, if is it possible to know if that change is happened via trigger or by manually?
My sample code:
$(document).on('change', 'select#days', function(event)
{
alert('Change happened');
});
$(function()
{
$("#days").trigger('change');
});
This is my fiddle.