How to add onChange attribute for select box from Javascript / jQuery
Did you try...
$("#depositForm").on("change", function(event) {
selectedMainDepositType(this);
} );
jQuery .on()
$("#depositForm").change(function(e){
selectedMainDepositType($(this));
});