$(document).ready(function () {
$("#<%=TextBox2.ClientID %>").dynDateTime({
showsTime: true,
ifFormat: "%Y/%m/%d %H:%M",
daFormat: "%l;%M %p, %e %m, %Y",
align: "BR",
electric: false,
singleClick: false,
displayArea: ".siblings('.dtcDisplayArea')",
button: ".next()"
});
});
$(document).ready(function () {
$("#<%=TextBox3.ClientID %>").dynDateTime({
showsTime: true,
ifFormat: "%Y/%m/%d %H:%M",
daFormat: "%l;%M %p, %e %m, %Y",
align: "BR",
electric: false,
singleClick: false,
displayArea: ".siblings('.dtcDisplayArea')",
button: ".next()"
});
});
function testing() {
var startDate = document.getElementById('<%= TextBox2.ClientID %>').value;
var endDate = document.getElementById('<%= TextBox3.ClientID %>').value;
if ((Date.parse(endDate) <= Date.parse(startDate))) {
alert("End date should be greater than Start date");
document.getElementById('<%= TextBox3.ClientID %>').value = "";
}
}
Add New CP.aspx:402 Uncaught TypeError: $(...).dynDateTime is not a function

siva nagarjuna28 reputationPosted Aug 12, 2016, 12:33 AM EDT
Vinay SinghRank #604 · 4K reputationPosted Aug 12, 2016, 12:24 AM EDT