Skip to content

Bind multiDatesPicker to dynamically added elements #273

@saurindashadia

Description

@saurindashadia

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions