Closed MonsieurSlim closed 7 years ago
Please how do I remove an already initialized element?
$('#datetimepicker').data("DateTimePicker").destroy() doesn't work and throws Cannot read property 'destroy' of undefined
$('#datetimepicker').data("DateTimePicker").destroy()
Cannot read property 'destroy' of undefined
Sorry I figured it out. The destroy method was available on dp.change
dp.change
Please how do I remove an already initialized element?
$('#datetimepicker').data("DateTimePicker").destroy()
doesn't work and throwsCannot read property 'destroy' of undefined