Javascript 第二个日期选择器不显示下拉选项

Javascript 第二个日期选择器不显示下拉选项,javascript,jquery,wordpress,datepicker,woocommerce,Javascript,Jquery,Wordpress,Datepicker,Woocommerce,我的结账页面上有两个日期选择器:一个用于出生日期,另一个用于航班日期 第一个是可以的,但第二个是,月份和年份的下拉选项消失/禁用 以下是出生日期的代码: $fields['billing']['billing_datebirth'] = array( 'label' => __('Date of Birth', 'woocommerce'), 'id' => 'billing_datebirth', 'plac

我的结账页面上有两个日期选择器:一个用于出生日期,另一个用于航班日期

第一个是可以的,但第二个是,月份和年份的下拉选项消失/禁用

以下是出生日期的代码:

$fields['billing']['billing_datebirth'] = array(
        'label'     => __('Date of Birth', 'woocommerce'),
        'id'        => 'billing_datebirth',
        'placeholder'   => _x('MM/DD/YYYY', 'placeholder', 'woocommerce'),
        'autocomplete' => 'off',
        'required'  => false,
        'class'     => array('form-row-first'),
        'clear'     => true,
        'options'     =>   array('' => __('Select BirthDay', 'woocommerce' ))
);
<p class="form-row form-row form-row-first woocommerce-validated" id="billing_datebirth_field">
  <label for="billing_datebirth" class="">Date of Birth<abbr class="required" title="required"> * </abbr></label>
  <input type="text" class="input-text  hasDatepicker" name="billing_datebirth" id="billing_datebirth" placeholder="MM/DD/YYYY" autocomplete="off" value="">
</p>
航班日期:

$fields['order']['shipping_flight_date'] = array(
                                        'label'     => __('Flight Date', 'woocommerce'),
                                        'id'        => 'shipping_flight_date',
                                        'placeholder'   => _x('MM/DD/YYYY', 'placeholder', 'woocommerce'),
                                        'autocomplete' => 'off',
                                        'required'  => false,
                                        'class'     => array('form-row-last'),
                                        'clear'     => true,
                                        'options'     =>   array('' => __('Select Flight Date', 'woocommerce' ))
                                );
<p class="form-row form-row form-row-last woocommerce-validated" id="shipping_flight_date_field">
  <label for="shipping_flight_date" class="">Flight Date<abbr class="required" title="required"> * </abbr></label>
  <input type="text" class="input-text  hasDatepicker" name="shipping_flight_date" id="shipping_flight_date" placeholder="MM/DD/YYYY" autocomplete="off" value="">
</p>
当我检查字段时,没有jQuery错误,但下面是HTML代码:

出生日期:

$fields['billing']['billing_datebirth'] = array(
        'label'     => __('Date of Birth', 'woocommerce'),
        'id'        => 'billing_datebirth',
        'placeholder'   => _x('MM/DD/YYYY', 'placeholder', 'woocommerce'),
        'autocomplete' => 'off',
        'required'  => false,
        'class'     => array('form-row-first'),
        'clear'     => true,
        'options'     =>   array('' => __('Select BirthDay', 'woocommerce' ))
);
<p class="form-row form-row form-row-first woocommerce-validated" id="billing_datebirth_field">
  <label for="billing_datebirth" class="">Date of Birth<abbr class="required" title="required"> * </abbr></label>
  <input type="text" class="input-text  hasDatepicker" name="billing_datebirth" id="billing_datebirth" placeholder="MM/DD/YYYY" autocomplete="off" value="">
</p>

请分享你的js codeposted@JijoCleetus请分享你的js codeposted@JijoCleetus