<script type="text/javascript">
$(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()"
});
});
</script>
<script type="text/javascript">
$(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()"
});
});
</script>
<script type="text/javascript">
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 = "";
}
}
</script>
This code locally runs well but on live it gives that error
Add New CP.aspx:402 Uncaught TypeError: $(...).dynDateTime is not a function