我制作了两个日期选择器的代码,其中第二个日期选择器的日期总是大于第一个。我在这里给出代码
<script>
$(function() {
jQuery.datepicker.setDefaults({dateFormat:"dd-mm-yy"});
$.datepicker.parseDate('dd-mm-yy', '20-09-2011');
$( "#datepicker" ).datepicker({
buttonImageOnly: false,
changeMonth: true,
changeYear: true,
maxDate: '+36m+2w',
minDate: new Date(),
showAnim: '',
onClose: function( selectedDate ) {
$( "#rdatepicker" ).datepicker( "option", "minDate", selectedDate );
}
});
$( "#rdatepicker" ).datepicker({
buttonImageOnly: false,
changeMonth: true,
changeYear: true,
maxDate: '+36m+2w',
minDate: new Date(),
showAnim: ''
});
});
</script>
我有错误
SyntaxError: missing ) after argument list };