Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Destroy daterangepicker #54

Open
sridhargoshika opened this issue Jun 27, 2019 · 1 comment
Open

Destroy daterangepicker #54

sridhargoshika opened this issue Jun 27, 2019 · 1 comment

Comments

@sridhargoshika
Copy link

Can we have a destroy method for destroying a particular daterangepicker?

@brunorafaeI
Copy link

Hello,

I'll share my solution with you, I hope it help you too.

For destroy instance daterangepicker :

$('YourOwnElementHTML').removeData('daterangepicker'); // Remove all settings of datarangepicker
$('YourOwnElementHTML').unbind('focus, click'); // Remove calendarView

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants