Код: Выделить всё
$("#").blur(function () {
if ($(this).val() !== "") {
var date = Date.parse($(this).val());
if (isNaN(date)) {
//some code
}
} else {
//some code
}
});
Подробнее здесь: https://stackoverflow.com/questions/208 ... nt-working
Код: Выделить всё
$("#").blur(function () {
if ($(this).val() !== "") {
var date = Date.parse($(this).val());
if (isNaN(date)) {
//some code
}
} else {
//some code
}
});