How can I read the input from a datepicker and use it in JS?


I have seen that similar questions have been asked in this forum (some quite a while ago, however), but neither answer helped me.

It is simple: There is a datepicker component on my page and I want to read the date input done by the user and do something with it in JS. I have the following code running after some "send date" button has been clicked:

var x = Apperyio("datepickerComponentName").val();
alert (x);

The alert only shows an empty box, but I would like to see the date, i.e. 18/03/2014. What might be wrong?

Thanks for your help.
1 person has
this question
This topic is no longer open for comments or replies.