Try using the onClose event of the datepicker to call the blur event of the input field.
$(function(){
$('#DOB').datepicker({
dateFormat:"d M, yy",
changeMonth: true,
changeYear: true,
yearRange: "1937:2017",
onClose: function() {
$(this).trigger('blur');
}
});
});