Page 1 of 1

Date Picker : Set the value into Local-storage by manual entry in Date-Picker's text-box.

Posted: Fri Jul 11, 2014 10:37 am
by Himanshu

Hello Team,

I have one date-picker control, and one button.
On click on Button, I want to store date-picker's value into a "Local-Storage" variable. It works fine in all the cases, except if I change the value manually in the text-box of Date-picker and click on button directly (without clicking anywhere else in the screen). I am getting the previous value instead of new value changed by me manually.

I am getting the value like this:
var fromDate = Appery('datePicker_mpa_FromDate').getAttr("defaultDateValue");

Thanks.
Himanshu Pareek.


Date Picker : Set the value into Local-storage by manual entry in Date-Picker's text-box.

Posted: Fri Jul 11, 2014 11:54 am
by Maryna Brodina

Hello!

Please try this code pre var fromDate = Apperyio("mobiledatepickerName").datapickerRoot.find("input").val();/prewhere mobiledatepickerName - datepicker name