Is it possible to combine the detection of changes for both text field and datepicker?
currently, my code is:
$('#my_textFiled').on('input',function(e){
console.log($('event Triggered').val());
});
$('#date_received').datepicker().on('changeDate',function(e){
console.log($('event Triggered').val());
});
the reason I want to combine them is that I want to determine if the date picker and text field has values so that i can enable a button. I need them BOTH to have values before continuing.
$('#my_textFiled', '#date_received').on(('input', 'changeDate'),function(e){
console.log($('event Triggered').val());
});