jQueryUI 日期选择器显示在 Google Chrome 中提交的表单上
我在我的一个表单上使用 jQueryUI 日期选择器,如果您选择我已附加日期选择器的字段,然后选择一个日期,然后单击“提交”,它应该提交表单 - 它在 IE 中执行,但在 IE 中则不然铬合金。
在 Chrome 中,它重新打开日期选择器,我不知道为什么。我已将以下内容放在 Pastebin 上以显示该错误;
了
有谁知道为什么会发生这种情况 - 这让我发疯 !?
干杯
I am using the jQueryUI Date Picker on one of my forms and if you select the field that I have attached the datepicker to, then select a date, then click "Submit" it should submit the form - which it does in IE but not in Chrome.
In Chrome, it re-opens the date picker and I have no idea why. I've put the following on pastebin to show the bug;
http://pastebin.me/6889d234b1b426ae2d0ed23cc3d77e39
Does anyone have any idea why this is happening - it's been driving me mad!?
Cheers
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
卫生部。经过多次测试,我发现它在 Chrome 中不起作用,因为属性“maxlength”设置为 8,而日期字段 DD/MM/YYYY 为 10 个字符,因此 Chrome 肯定对此感到困惑。
我对自己很生气。
DOH. After much testing I found that it wasn't working in Chrome because the attribute "maxlength" was set to 8 and the date field DD/MM/YYYY was 10 characters so Chrome must have been throwing a wobbler at that.
I'm so annoyed with myself.