I have a date field:
<input name="myDate" type="date" data-bind="value: myDate, click: getDate" />
I'm doing this because the version of Android webkit doesn't have a datepicker and acts like a text field. The getDate function opens a dialog box to capture the date and updates the date field to simulate user input:
$(currentField).val(yyyy+"-"+mm+"-"+dd);
The new date value is reflected onscreen on the page.
However, the new date value doesn't reflect on the view model.
Any ideas why? Is there a binding conflict? How do I avoid it?
Thanks.