How to detect if an input has autoComplete.js attached to it? #376
Unanswered
nguillaumin
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Is there a way in Javascript to detect if an input element has autoComplete.js attached to it?
My use case is that I have an application where I dynamically add rows to a table containing input fields, in Javascript (via Laravel Livewire). I need to attach autoComplete.js to these dynamically added rows. I haven't found a good way to identify only the new rows, so currently I loop over all rows and attach it, but it should be only if it's not already attached. Is there a way to detect that?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions