getDate: function(formated) {
if (this.size() > 0) {
return prepareDate($('#' + $(this).data('datepickerId')).data('datepicker'))[formated ? 0 : 1];
}
}
在这部分我创建阵列输出阵列的多个输入
现在有了这个部分,我发现了阵列到输入
onChange: function(formated, dates){
$('#outDate').val(formated);
}
输出是财产以后这样的:
09 May 2014,24 May 2014
现在我愿意得到
第一阵列的对<input class="inputDate" id="checkin" />
和下一个到<input class="inputDate" id="outDate" />
所以输出需要是
09 2014年5月在签和24日2014在结帐
该怎么做?
我得到这个错误:未捕获的类型错误:未定义是不是一个函数的index.html:25 $ .DatePicker.onChange指数.html:25 click datepicker.js:571 jQuery.event.handle jquery.js:2693 (匿名函数) – Ivo
检查什么是null。您必须尝试对空字符串或数组进行操作。 @IvoJonkers –
当我试图分裂它说它是空的 – Ivo