datepicker-demo.js 785 B

123456789101112131415161718192021222324252627282930313233343536
  1. /* jQuery UI Datepicker */
  2. $(function() {
  3. "use strict";
  4. $("#fromDate").datepicker({
  5. defaultDate: "+1w",
  6. changeMonth: true,
  7. numberOfMonths: 3,
  8. onClose: function(selectedDate) {
  9. $("#toDate").datepicker("option", "minDate", selectedDate);
  10. }
  11. });
  12. $("#toDate").datepicker({
  13. defaultDate: "+1w",
  14. changeMonth: true,
  15. numberOfMonths: 3,
  16. onClose: function(selectedDate) {
  17. $("#fromDate").datepicker("option", "maxDate", selectedDate);
  18. }
  19. });
  20. });
  21. $(function() {
  22. "use strict";
  23. $("#datepicker_multiple_months").datepicker({
  24. numberOfMonths: 3,
  25. showButtonPanel: true
  26. });
  27. });
  28. $(function() {
  29. "use strict";
  30. $(".datepicker").datepicker();
  31. });