I have to trigger a function on 2 events. The first event is keyup (I know how to trigger this). The second event is click on a specific button.
Currently I know hot to trigger the first event as I said I use the following code:
emailPartner.on('keyup', function () {
emailPartner.parent().removeClass('error-sign-up');
$('.server').remove()
}
How do I trigger on both of the event?