2014-09-01 75 views
0

我有一個jQuery的日期選擇日曆。 當我按下一個按鈕日曆彈出窗口隱藏。 由於此錯誤,我無法選擇下個月的日期。jQuery日期選擇器隱藏時按Next/Previous

這裏是我的代碼

$("#moviedate").datepicker({ 
    showOtherMonths: true, 
    selectOtherMonths: true, 
    changeMonth: true, 
}); 
+0

http://jsfiddle.net/Fa8Xx/2114/做工精細與您的代碼 – Shin 2014-09-01 06:31:50

+0

使用Firebug,看在browser.Post error.Remove',''從changeMonth:true,'。 – 2014-09-01 06:38:14

+0

怎麼做小提琴和再現你的問題。問題在代碼中的其他地方。 – Manwal 2014-09-01 07:28:41

回答

0
$(function() { 
    $("#datepicker").datepicker({ 
     showOtherMonths: true, 
     selectOtherMonths: true, 
     changeMonth: true, 
    }); 
}); 

http://jsfiddle.net/u2n3nnts/

如果你使用的是其他JavaScript庫jQuery的旁邊。您的代碼應該是在noConflict區域之間:

jQuery.noConflict(); 
    (function($) { 
     $("#moviedate").datepicker({ 
     showOtherMonths: true, 
     selectOtherMonths: true, 
     changeMonth: true, 
     }); 
})(jQuery); 
+0

感謝您的更新。我也嘗試過上面的代碼,但仍然是同樣的問題。當按下下一步按鈕日曆彈出窗口隱藏。 – Karthick 2014-09-01 11:48:47

+0

如果您正在使用另一個JavaScript庫和jQuery。你的代碼應該在noConflict區域之間: jQuery.noConflict(); (函數($){ \t \t $(函數(){$使用作爲別名jQuery的 }) //更多的代碼; })(jQuery的); – 2014-09-02 10:32:13