Skip to content
This repository was archived by the owner on Sep 4, 2019. It is now read-only.

How to invoke plugin on dynamic content multiple times #16

Open
outbounder opened this issue Aug 12, 2015 · 2 comments
Open

How to invoke plugin on dynamic content multiple times #16

outbounder opened this issue Aug 12, 2015 · 2 comments

Comments

@outbounder
Copy link

Hi there,

Invoking the plugin on dynamic content multiple times produces multiple <label> tags which is not the desired behavior knowing that labelauty-fied inputs are all having different ids.

So is there any flag to force override of target elements instead of appending to them?

@fntneves
Copy link
Owner

Hi,

Override/Update the existing labels' target when content changes, is what you're asking for ?
It's not possible, yet.

@chrisvogt
Copy link

"Invoking the plugin on dynamic content multiple times produces multiple tags..."

In case it helps, I have been able to get around this by removing those label elements before recalling labelauty.

Example: $yourParentElement.find('label:not(.label_check)').remove();

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

3 participants