I have a checkout button, and when the user accepts the terms, in the first event I set the button to disable and then submit the form. In this case, the second event that was set on the button won't fire anymore.
$cache.opcSubmit.prop('disabled', true);
$cache.opc.submit();
the second (live) event will not fire when that code above runs that is in the first event.
The second event was set like this :
$(document).on('click', '.continue-step button[type="submit"]', function () {
$(this).data('event', 'doSomething');
}
The thing is that I cannot place the second event up because it is using a library that it will init events after 1 second to be sure was loaded.
Any help or suggestion would be appreciated. Thanks