I have an input text which (asp textbox) which is using the jquery ui datepicker. I was testing this input and discover that I can enter text by writing and when i do this I can write this ////
Is there a way to validate while writing and continue using the functionality of the datepicker?
Mi code of the text is this:
var dates = $('#<%= txtFechaDesde.ClientID %>, #<%= txtFechaHasta.ClientID %>').datepicker({
showOn: "both",
buttonImage: '<%=ResolveUrl("~/images/iconos/calendar.gif") %>',
buttonImageOnly: true,
dateFormat: 'dd/mm/yy',
onSelect: function (dateText, inst) {
var option = this.id == "<%= txtFechaDesde.ClientID %>" ? "minDate" : "maxDate",
instance = $(this).data("datepicker"),
date = $.datepicker.parseDate(
instance.settings.dateFormat ||
$.datepicker._defaults.dateFormat,
dateText, instance.settings
);
dates.not(this).datepicker("option", option, date);
}
});