Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bind multiDatesPicker to dynamically added elements #273

Open
saurindashadia opened this issue Apr 24, 2023 · 0 comments
Open

Bind multiDatesPicker to dynamically added elements #273

saurindashadia opened this issue Apr 24, 2023 · 0 comments

Comments

@saurindashadia
Copy link

I tried different ways to initiate the multiDatesPicker to the dynamically added (cloned) with no success.
I tried to search on internet for some solutions but none worked.

The selector is the class name '.multidates' for existing and new added elements.

I tried calling the multiDatesPicker() function again after the element is added to dom.

$('.multidates').multiDatesPicker();

Also tried other solution found

$('body').on('focus', '.multidate', function(){
	$(this).removeClass('hasDatepicker').multiDatesPicker({
		dateFormat: "dd/mm/yy",
	});
});

None worked. Please help.

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

No branches or pull requests

1 participant