D
displayname
I want to calculate in javascript the number of days between two dates as
soon as either of the dates is changed. I use onchange="calculateDays();". It
works fine if you type in a new date. But, if you change the date by
selecting a date from a calendar icon next to the date field, it does not
think the field has changed and thus the javascript function is not invoked.
How should that be fixed? The same thing happens with onclick. Thank you.
soon as either of the dates is changed. I use onchange="calculateDays();". It
works fine if you type in a new date. But, if you change the date by
selecting a date from a calendar icon next to the date field, it does not
think the field has changed and thus the javascript function is not invoked.
How should that be fixed? The same thing happens with onclick. Thank you.