Javascript does not works with date inputs

I have simple javascript code that instantly copy entered text on other input.That works grate!

example : http://jsfiddle.net/fmdwv/1/

But when i try to use it for dates it does not works :frowning:

example: http://jsfiddle.net/fmdwv/239/

why that so?

because the datepicker select does not trigger a keydown.

1 Like

Can it be fixed?

Change it to “change” rather than “keydown” (http://jsfiddle.net/annoyingmouse/fmdwv/240/)

1 Like

depends if your datepicker emits any events when you seleceted a date.

Cool man thanks this worked :slight_smile:

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.