Joomla 日历定制
我正在尝试创建一个预订系统。如何在 2 个选择框中显示所选日期,而不是 Joomla 中默认的输入,如下图所示?
我尝试搜索 calendar-setup.js
文件,但找不到任何函数来做到这一点。我想将日历的点击事件绑定到选择框。
有什么建议吗?
I am trying to create a booking system. How do I show the selected date in 2 select boxes instead of an input which is the default in Joomla as in the image below?
I tried searching the calendar-setup.js
file but couldn't locate any function to do this. I want to bind the click event of the calendar to the select boxes.
Any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这可能会有点毛茸茸的。日历很可能以日历选项指定的格式传回字符串。如果是这种情况,将格式字符串与下拉列表中项目的值相匹配可能会解决问题。其效果是:
这个技巧是弄清楚如何获得索引和返回的值以对齐。
That could get a bit hairy. The calendar most likely passes a string back in a format specified by the calendar's options. If this is the case, matching the format string to the values for the items in the dropdown will likely do the trick. Something to the effect of:
This trick is figuring out how you are going to get the index and the values returned to line up.