Let's say i have attached an event to an input, like this :
$('#input-address').on('change',function() {
// do something
});
Later in my code, i need to check if the 'input-address' has a change listener and call it manually. Something like this :
if ($('#input-address').hasOnChangeEvent) $('#input-address').callOnChangeEvent();
I know i can do some workaround to achieve this, would be easier for only one time task. But what i'm trying to achieve is a way to do it generically and apply for multiple inputs. Is this possible ?
Thanks in advance !