2012-11-23 2 views
2

어떻게 beforeShowDay 함수가 하루를 호출하지 못하게 할 수 있습니까? jquery datepicker에는 2 개월이 있습니다.beforeShowDay는 하루에 두 번 전화합니다

beforeShowDay와
30.01.2013 -> month side jan 
31.01.2013 -> month side jan 
01.02.2013 -> month side jan (last invisible day/placehoder) 
02.02.2013 -> month side jan (last invisible day/placehoder) 
03.02.2013 -> month side jan (last invisible day/placehoder) 
----------------------------  
28.01.2013 -> month side feb (first invisible day/placehoder) 
29.01.2013 -> month side feb (first invisible day/placehoder) 
30.01.2013 -> month side feb (first invisible day/placehoder) 
31.01.2013 -> month side feb (first invisible day/placehoder) 
01.02.2013 -> month side feb 
01.02.2013 -> month side feb 
02.02.2013 -> month side feb 
02.02.2013 -> month side feb 
03.02.2013 -> month side feb 
03.02.2013 -> month side feb 
04.02.2013 -> month side feb 
04.02.2013 -> month side feb 

Picture Example

내가 계산 일 어떤 일이 두 번 호출하는 경우, 결과는 내가 일을 두 번 호출을 방지 할 수있는 방법 ... 옳지 않아?

인사말! this UI를 jQuery 예에 따르면

답변

0

:

$(function() { 
    $("#datepicker").datepicker({ 
     showOtherMonths: true, 
     selectOtherMonths: true, 
     numberOfMonths: 2 
    }); 
}); 
관련 문제