Javascript issue with Dates
I am having some issues with javascript & using dates (in conjunction with the jQuery datepicker)
The code below gives me an error date.g开发者_如何学编程etTime is not a function endDate.setTime(date.getTime());
http://pastebin.com/Bgpw3QHF
Can anyone explain the problem?
Replace date
by endDate
. You've got a variable name mismatch.
endDate.setTime(date.getTime()); //current
endDate.setTime(endDate.getTime());//Should be
精彩评论