-2
$(document).ready(
/* This is the function that will get executed after the DOM is fully loaded */
function() {
$(".datepicker").datepicker({
changeMonth: true, //this option for allowing user to select month
changeYear: true, //this option for allowing user to select from year range
dateFormat: "dd-mm-yy" //this option is for display in dd-mm-yy format
});
}
);
這是我的輸入代碼:
<label>Date Of Birth:*</label>
<input type="text" id="datepicker" name="datepicker" class="form-control datepicker">
從這個代碼,我沒有得到我那麼,怎樣才能讓過去的幾年中2007年之前的十年?