jQuery(function() {
jQuery('#datepicker').datepicker({
altField: '#wc_order_field_2563', //setting alternate field
altFormat: 'dd-MM-yy', //setting alternate date format
fielddateFormat: 'mm-dd-yy' //this is the date format for datepicker field
});
});
input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="password"], input[type="search"], textarea {
border: none;
border-bottom: 1px solid #dadada;
color: #000;
font-family: 'Poppins', sans-serif;
font-size: 15px;
line-height: 2;
padding-left: 10px;
transition: all 0.3s ease;
width: 100%;
}
.woocommerce-billing-fields label, .woocommerce-shipping-fields label, .woocommerce-account-fields label, .woocommerce-additional-fields__field-wrapper label {
display: none;
}
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery UI Datepicker - Default functionality</title>
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<link rel="stylesheet" href="/resources/demos/style.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
</head>
<body>
<ul>
<li>i took your HTML from the site, twomoms.kitchen, dont need to make modification to it</li>
<li>just add this new #datepicker div on top of the html as below</li>
<li>in the jQuery function the input fields id gets called as can see below</li>
<li>You can add this Jquery in the <em>script</em> tag in your header ,should work</li>
<li><strong>goodluck</strong>, comment if you need me</li>
</ul>
<!-- ADD this div -->
<div id="datepicker"></div>
<!-- ADD this div -->
<div class="woocommerce-additional-fields__field-wrapper">
<p class="form-row form-row-first validate-required" id="wc_order_field_2563_field" data-priority="">
<label for="wc_order_field_2563" class="">Pickup Date <abbr class="required" title="required">*</abbr>
</label>
<input type="text" class="input-text hasDatepicker" name="wc_order_field_2563" id="wc_order_field_2563" placeholder="Click here to choose your pickup date*: (Tuesday - Saturday)" value="">
</p>
</div>
</body>
</html>