1

我的问题:甚至可以在另一个页面上使用 altField 并且(希望是的)有人可以告诉我正确的方向吗?

var opts = {
 dateFormat: "dd/mm/yy",
    dayNamesMin: ['Zo', 'Ma', 'Di', 'Wo', 'Do', 'Vr', 'Za'],
    minDate: '+0D',
    maxDate: '+2Y',
    numberOfMonths: 2,
    showOn: "both",
    buttonImage: "/img/datepicker-icon.png",
    buttonImageOnly: true,
    buttonText:"Selecteer datum",
};

//on homepage
$('#from').datepicker( $.extend({ altField: '#alt-from'}, opts));
$('#to').datepicker($.extend({altField: '#alt-to'}, opts));

//on contact page
$('#alt-from').datepicker( $.extend({ altField: '#from'}, opts));
$('#alt-to').datepicker($.extend({altField: '#to'}, opts));
4

0 回答 0