2013-03-20 24 views

回答

1

編輯:

有這個沒有直接的解決方案,但你可以添加到您的CSS

.ui-datepicker-month{ 
    float: right !important; 
} 

我相信它會做的伎倆

+0

你必須給年度一個位置,否則它會重疊的盒子,我猜? – 2013-03-20 10:38:05

0

我認爲你必須更改格式。

所以更改此設置(默認)

$(".selector").datepicker({ altFormat: "yy-mm-dd" }); 

這一點,如果你沒有指定這個。將其添加到您的代碼。

$(".selector").datepicker({ altFormat: "dd-mm-yy" }); 

,獲取或設置altFormat選項,初始化後:

// getter 
var altFormat = $(".selector").datepicker("option", "altFormat"); 

// setter 
$(".selector").datepicker("option", "altFormat", "yy-mm-dd"); 

如這裏 http://api.jqueryui.com/datepicker/#option-altFormat

描述您可以更改與的ThemeRoller主題:

2

你只需要添加選項showMonthAfterYear:true

jQuery('input[name=calender]').datepicker({ 
    changeYear:true, 
    changeMonth:true, 
    showMonthAfterYear:true 
}); 
相關問題