jQuery Datepicker does not update input field upon selecting date

▼魔方 西西 提交于 2019-12-11 14:21:01

问题


I've read all the SO topics on this, and tried numerous things. Even the jQuery Datepicker information page at http://jqueryui.com/datepicker/#default shows the behavior I don't understand.

a. Click in the input field > datepicker pops up b. Select a date > visually, input field appears to show your selected date c. However, the "value" attribute for the input field does not change to the selected date

What am I missing, please? Thanks


回答1:


Firebug always show the default value of any html element. It never changes value when reflects on Client side. However when u will submit or serialize the form, the updated value will pass to the $_POST.



来源:https://stackoverflow.com/questions/27461193/jquery-datepicker-does-not-update-input-field-upon-selecting-date

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!