How to clear a field using jquery after Ajax form reload
Try this, it should work. Instead of $(document).on you can also use any outer static element.

$(document).on('change', '#foo--2', function(){
    alert ('change detected');
    'input#bar-datepicker-popup-1'.val('');
});