我正在使用jquery datetimepicker,在我使用insertAdjacmentHTML之后,我可以看到一个新的输入,但是jquery插件不支持该输入,我该如何解决?
const markup =
` <div class="box-row pb-2">
<div class="box-row__item">
<p class="item_text item_text_number">${cnt}</p>
</div>
<input class="direction_item datapicAll" value="" id="datetimepicker${cnt}" type="text">
<img src="/remove-insured.png" class="img_remove" alt="">
</div>
`;
console.log(markup);
const bio = document.getElementById('bio');
bio.insertAdjacentHTML("beforeEnd", markup
);
$('#datetimepicker2').datepicker({
startDate: new Date(),
autoClose: true,
})