TrevorS / bootstrap3-datetimepicker-rails

This gem packages the bootstrap-datetimepicker for the Rails 3.1+ asset pipeline.
MIT License
292 stars 123 forks source link

Destroy already initialized widget #56

Closed MonsieurSlim closed 7 years ago

MonsieurSlim commented 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

MonsieurSlim commented 7 years ago

Sorry I figured it out. The destroy method was available on dp.change