使用Jquery / Datepicker逐个选择多个日期 [英] Pick multiple dates one by one with Jquery/Datepicker

查看:183
本文介绍了使用Jquery / Datepicker逐个选择多个日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个表单,在表单上我想要一个日期戳。所以当有人点击选择日期字段时,日期戳会弹出并显示多个月。从那里我想让该人点击单个日期,每次点击他们选择的日期附加到窗体字段逗号分隔。我正在寻找一个jquery解决方案,现在我看看:



http://jqueryui.com/demos/datepicker/#multiple-calendars



问题是当我选择一个日期datepicker关闭,所选日期显示在表单域中。我希望datepicker在选择多个日期时继续显示,并且选择的日期保持突出显示,然后在完成选择日期后点击完成。任何人都可以指出我可以如何实现这一点,还是有一个预先存在的jQuery代码?

解决方案

尝试此插件(页面附近的示例): http://multidatespickr.sourceforge.net/


I have a form and on that form I would like to have a datepicker. So when someone clicks select dates field the datepicker pops up and shows multiple months. From there I would like for the person to click individual dates, each click the date they selected gets appended to the form field comma seperated. Im looking for a jquery solution, right now Im looking at:

http://jqueryui.com/demos/datepicker/#multiple-calendars

The problem is when I select a date the datepicker closes then the date selected shows up in the form field. I want the datepicker to continue to show while they select multiple dates and the dates they selected stay highlighted, then click done when they are done selecting dates. Can anyone point me to how I can accomplish this or is there a pre-existing jquery code that does that?

解决方案

try out this plugin (demo near bottom of page): http://multidatespickr.sourceforge.net/

这篇关于使用Jquery / Datepicker逐个选择多个日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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