I have developed this function to validate date range, but it has a flaw that I can not resolve.
If I pass the values:
Youshouldentervalidationanddonotletsave.ButitdoesnothappenandIdonotknowwhy.
functionValidarDatas(){vardataInicial=$("#<%=txtDtIni.ClientID%>").val();
var dataFinal = $("#<%=txtDtFim.ClientID%>").val();
if (dataInicial > dataFinal) {
criarDivAlert("Alerta", "Intervalo de datas inválidos");
exibirAlerta(false);
$("#<%=txtDtFim.ClientID%>").focus();
cancelPostback = true;
}
}