2012-03-22 6 views
0

테마 시작 테마로 UI 날짜 선택 도구를 다운로드했습니다. 나는 이것을 내 사이트에서 구현했다. Butt 캘린더에서 이전 날짜를 선택하여 중단하고 싶습니다. 나는. 이전 날짜는 비활성이어야합니다. 나는 jquery를 모른다. 그러니 어떻게해야할까요? 측면에서 내 코드UI에서 이전 날짜를 비활성화하는 방법 dtaepicker

<link type="text/css" href="css/start/jquery-ui-1.8.18.custom.css" rel="stylesheet" /> 
     <script type="text/javascript" src="js/jquery-1.7.1.min.js"></script> 
     <script type="text/javascript" src="js/jquery-ui-1.8.18.custom.min.js"></script> 
     <script type="text/javascript"> 
      $(function(){ 

       // Datepicker 
       $('#datepicker').datepicker({ 
        inline: true 

       }); 

       //hover states on the static widgets 
       $('#dialog_link, ul#icons li').hover(
        function() { $(this).addClass('ui-state-hover'); }, 
        function() { $(this).removeClass('ui-state-hover'); } 
       ); 

      }); 
     </script> 
     <style type="text/css"> 
      /*demo page css*/ 
      body{ font: 62.5% "Trebuchet MS", sans-serif; margin: 50px;} 
      .demoHeaders { margin-top: 2em; } 
      #dialog_link {padding: .4em 1em .4em 20px;text-decoration: none;position: relative;} 
      #dialog_link span.ui-icon {margin: 0 5px 0 0;position: absolute;left: .2em;top: 50%;margin-top: -8px;} 
      ul#icons {margin: 0; padding: 0;} 
      ul#icons li {margin: 2px; position: relative; padding: 4px 0; cursor: pointer; float: left; list-style: none;} 
      ul#icons span.ui-icon {float: left; margin: 0 4px;} 
     </style> 

에게 몸

<input type="text" id="datepicker"> 

를 참조 사전

답변

0

할 수 있습니다 단지 restrict the date range 나에게

감사를 도와주세요.

$("#datepicker").datepicker({ minDate: -20, maxDate: "+1M +10D" }); 
관련 문제