Hi,
Thanks for the reply actually i have tried and implemented in
different way but now i am getting one issue
http://jsfiddle.net/karthic2914/q4zssncz/8/
if the user select from date as 01/01/2000 and to date as
12/01/1999 an alert should come from date is greater than to date
here is the code for
$.each(".wrk_exp", function(key, value) {
console.log("Start Date: ", dateStart[key]);
console.log("Start End: ", dateEnd[key]);
if (($(".startDate", this) != null) &&
($(".endDate", this) != null) && (dateStart[key]
>= dateEnd[key])) {
//alert('Date ranges overlap');
alert("To date " + dateEnd[key] + "
should be greater then from date " + dateStart[key]);
valid = false;
diffDays += parseInt((dateEnd[key] - dateStart[key]) /
(1000 * 60 * 60 * 24));
console.log("diffdays", diffDays);
return valid;
}
});
i am getting an error as Uncaught TypeError: Cannot use
'in' operator to search for '7' in .wrk_exp
kindly please help me thanks