jQuery Datepicker在选择日期后不会更新输入字段 [英] jQuery Datepicker does not update input field upon selecting date

查看:94
本文介绍了jQuery Datepicker在选择日期后不会更新输入字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经阅读了所有关于SO的主题,并尝试了许多事情.甚至 http://jqueryui.com/datepicker/#default 上的jQuery Datepicker信息页面也显示了该行为.我不明白.

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.单击输入字段>弹出日期选择器 b.选择日期>直观地显示输入字段以显示您选择的日期 C.但是,输入字段的值"属性不会更改为所选日期

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

推荐答案

Firebug始终显示任何html元素的默认值.在客户端反映时,它永远不会改变价值.但是,当您提交或序列化表单时,更新后的值将传递到$ _POST.

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.

这篇关于jQuery Datepicker在选择日期后不会更新输入字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆