Is about multiple init air datepicker
alanwkk opened this issue · 0 comments
alanwkk commented
Can I know how to trigger method clear() if I using foreach loop to init the air picker ?
I have a form with multiple datepicker, and then I have a reset button , I can set empty to the input box, but I don't know how to call clear() method directly if I using
$(".datepickers").each(function () {
var field = "#" + $(this).attr("id");
datepicker = new AirDatepicker(field);
})
thanks