jquery-labelauty icon indicating copy to clipboard operation
jquery-labelauty copied to clipboard

How to invoke plugin on dynamic content multiple times

Open outbounder opened this issue 10 years ago • 2 comments

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?

outbounder avatar Aug 12 '15 09:08 outbounder

Hi,

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

fntneves avatar Aug 14 '15 22:08 fntneves

"Invoking the plugin on dynamic content multiple times produces multiple

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();

chrisvogt avatar Apr 29 '16 22:04 chrisvogt