This seems extremely odd to me. The onSelect configuration on pikaday should be something that is called before the change event happens since it should be the javascript that handles pikaday that ...