JqueryUI - Set the numberOfMonths option to an integer of 2 or more to show multiple months in a single datepicker.


SUBMITTED BY: jlolk3r

DATE: Feb. 15, 2016, 3:43 a.m.

FORMAT: HTML

SIZE: 662 Bytes

HITS: 1838

  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>jQuery UI Datepicker - Display multiple months</title>
  6. <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
  7. <script src="//code.jquery.com/jquery-1.10.2.js"></script>
  8. <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
  9. <link rel="stylesheet" href="/resources/demos/style.css">
  10. <script>
  11. $(function() {
  12. $( "#datepicker" ).datepicker({
  13. numberOfMonths: 3,
  14. showButtonPanel: true
  15. });
  16. });
  17. </script>
  18. </head>
  19. <body>
  20. <p>Date: <input type="text" id="datepicker"></p>
  21. </body>
  22. </html>

comments powered by Disqus