$("#FechaRegistro").datepicker({
showOtherMonths: true,
selectOtherMonths: false,
autoclose: true,
format: "dd/mm/yyyy",
language: "es"
}).on('changeDate', function(ev) {
$(this).datepicker('hide');
$("#cantidad").select();
});
Es necesario definir en el evento changeDate que se oculte con la siguiente instrucción:
$(this).datepicker('hide');
No hay comentarios.:
Publicar un comentario