Jquery FlatPicker的时间选择器未在Mobile中禁用
我正在使用,它在桌面上运行良好,但在移动设备上,它不能像日期格式那样正常工作,也不能像时间选择器的禁用功能那样正常工作 此日期格式在手机中不起作用:Jquery FlatPicker的时间选择器未在Mobile中禁用,jquery,flatpickr,Jquery,Flatpickr,我正在使用,它在桌面上运行良好,但在移动设备上,它不能像日期格式那样正常工作,也不能像时间选择器的禁用功能那样正常工作 此日期格式在手机中不起作用: limitFlatPicker.init( { minDate: new Date(), selector: '#form-field-form_field_date', dateFormat: 'd/m/Y' // this should now work with minDate }); 我已经禁用了时间选择器,但无法
limitFlatPicker.init( {
minDate: new Date(),
selector: '#form-field-form_field_date',
dateFormat: 'd/m/Y' // this should now work with minDate
});
我已经禁用了时间选择器,但无法禁用它:
jQuery('#form-field-select_location').change(function(){
jQuery('#form-field-field_d280ad3').attr("disabled", "disabled");
jQuery('#form-field-time_for_mobile').attr("disabled", "disabled");
console.log( jQuery(this).val() );
if(jQuery(this).val() == 'Northwest Indiana Mobile') {
console.log('Northwest Indiana Mobile');
jQuery('#form-field-time_for_mobile').removeAttr("disabled");
jQuery("#form-field-time_for_mobile").attr("required", "true");
jQuery("#form-field-field_d280ad3").removeAttr("required");
jQuery('#form-field-field_d280ad3').val('');
} else {
console.log('Other');
jQuery('#form-field-field_d280ad3').removeAttr("disabled");
jQuery("#form-field-field_d280ad3").attr("required", "true");
jQuery("#form-field-time_for_mobile").removeAttr("required");
jQuery('#form-field-time_for_mobile').val('');
}
});
此代码不适用于移动:jQuery('#form-field-field_d280ad3')。removeAttr(“禁用”)代码>。起初它是禁用的,但在移动设备中它不是取消禁用的,这是时间选择器
非常感谢您的帮助