当选择一天时,jquery datepicker 会触发日历下的按钮事件

发布于 2024-12-14 23:54:38 字数 190 浏览 5 评论 0原文

当日期文本框获得焦点时,日历会弹出。我需要选择的日期直接位于日历下方的按钮上。当单击这一天时,会触发日历后面的按钮事件。我可以将按钮在表单上进一步向下移动,但这对于手机来说是一个问题,并不是一个好的解决方案。我对 jquery 开发环境比较陌生,希望能得到任何解决方案。

这是按钮控件:

Search

谢谢,

约翰

When the date text box gains focus, the calendar pops up. The day that I need to choose is directly over a button underneath the calendar. When the day is clicked the button event behind the calendar is fired. I could move the button further down on the form but this is an issue for phones and is not a good solution. I am relatively new to the jquery development environment and would appreciate any solution.

Here is the button control:

Search

Thanks,

John

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

佞臣 2024-12-21 23:54:39

经过几天的搜索我终于找到了解决方案。 z-index 必须添加到 datepicker css 中。

.ui-datepicker { width: 17em; padding: .2em .2em 0; display: none; z-index:9999 !important; }
                                                                   ^^^^^^^^^^^^^^^^^^^^^^^^

这解决了我的问题,只是想分享。

After days of searching I finally found a solution. The z-index must be added to the datepicker css.

.ui-datepicker { width: 17em; padding: .2em .2em 0; display: none; z-index:9999 !important; }
                                                                   ^^^^^^^^^^^^^^^^^^^^^^^^

This solved my problem and just wanted to share.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文