disabledate.html 876 B

12345678910111213141516171819202122232425262728
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Disable Calendar Date - jQuery EasyUI Demo</title>
  6. <link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
  7. <link rel="stylesheet" type="text/css" href="../../themes/icon.css">
  8. <link rel="stylesheet" type="text/css" href="../demo.css">
  9. <script type="text/javascript" src="../../jquery.min.js"></script>
  10. <script type="text/javascript" src="../../jquery.easyui.min.js"></script>
  11. </head>
  12. <body>
  13. <h2>Disable Calendar Date</h2>
  14. <p>This example shows how to disable specified dates, only allows the user to select Mondays.</p>
  15. <div style="margin:20px 0"></div>
  16. <div class="easyui-calendar" style="width:250px;height:250px;" data-options="
  17. validator: function(date){
  18. if (date.getDay() == 1){
  19. return true;
  20. } else {
  21. return false;
  22. }
  23. }
  24. "></div>
  25. </body>
  26. </html>