JSFiddle - React, Tailwind, and code Playground

HTML

<div>
    <input type="text" class="date_time" id="field_date1"/>
</div>
<div>
    <input type="text" class="date_time" id="field_date2"/>
</div>

JavaScript

$('input.date_time').each(function () {
    console.log(this);
    $(this).datepicker({
        showOn: "button",
        disabled: true
    });
});

$('#field_date2').datepicker('option', 'maxDate', 0);