[datepicker] Trigger onchange when selecting date

onchange event happens on the input box after selecting date from interface.
In line with the native Chrome/Opera date pickers.
[datepicker] Remove unused variable
Merge pull request #2320 from berubs/issue2261-m

[datepicker] Trigger onchange when selecting date