Himanshu
Posts: 0
Joined: Mon Mar 31, 2014 9:46 am

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

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.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

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

Hello!

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

Return to “Issues”