Untitled


SUBMITTED BY: Guest

DATE: Aug. 7, 2015, 1:34 p.m.

FORMAT: Text only

SIZE: 1.5 kB

HITS: 667

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. 16
  17. 17
  18. 18
  19. 19
  20. 20
  21. 21
  22. 22
  23. 23
  24. 24
  25. 25
  26. 26
  27. 27
  28. 28
  29. 29
  30. 30
  31. 31
  32. 32
  33. 33
  34. 34
  35. 35
  36. 36
  37. 37
  38. 38
  39. 39
  40. 40
  41. <!doctype html>
  42. <html lang="en">
  43. <head>
  44. <meta charset="utf-8">
  45. <title>jQuery UI Datepicker - Select a Date Range</title>
  46. <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
  47. <script src="//code.jquery.com/jquery-1.10.2.js"></script>
  48. <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
  49. <link rel="stylesheet" href="/resources/demos/style.css">
  50. <script>
  51. $(function() {
  52. $( "#from" ).datepicker({
  53. defaultDate: "+1w",
  54. changeMonth: true,
  55. numberOfMonths: 3,
  56. onClose: function( selectedDate ) {
  57. $( "#to" ).datepicker( "option", "minDate", selectedDate );
  58. }
  59. });
  60. $( "#to" ).datepicker({
  61. defaultDate: "+1w",
  62. changeMonth: true,
  63. numberOfMonths: 3,
  64. onClose: function( selectedDate ) {
  65. $( "#from" ).datepicker( "option", "maxDate", selectedDate );
  66. }
  67. });
  68. });
  69. </script>
  70. </head>
  71. <body>
  72. <label for="from">From</label>
  73. <input type="text" id="from" name="from">
  74. <label for="to">to</label>
  75. <input type="text" id="to" name="to">
  76. </body>
  77. </html>

comments powered by Disqus