私は MVC アプリケーションを開発しており、フォームで datepicker を使用しています。フォームで以下のコードを使用しています。
$(document).ready(function () {
$(function () {
$('.BirthDate').datepicker({
dateFormat: "dd-M-y",
yearRange:'1930:1995',
buttonImage: '@Url.Content("~/Resource/Calender.jpg")',
buttonImageOnly: true
});
});
$(".BirthDate" ).datepicker( "setDate", "01/01/1995" );
});
ユーザーが将来の日付を選択できるようにしたくありません。年の範囲を使用しましたが、2013 年の将来の月を選択できます。どのプロパティを使用する必要がありますか?