a problem here. I'm trying to remove a textArea value on 2 different buttons click (to be clear, when the button X and NO are clicked)
The problem is that when I'm selecting like this:
$('#reject_loan_modal-no', '#close-loan-rejection').on('click', function(e) {
e.preventDefault();
$('#loan-rejection-modal').modal('hide');
$('#clientservice-loan_approval_comment').val('');
});
It doesn't work at all. But when I'm seperating these two into a different .on('click')
events, it works fine.
But I don't want to duplicate the code, so looking for a proper way to do it..
Thanks for any help