tagmanager icon indicating copy to clipboard operation
tagmanager copied to clipboard

not working with dynamic text-input

Open softvar opened this issue 11 years ago • 1 comments

Everything works fine, even the typeahead.js after little tweaks. But the problem is with dynamic text-input. The plugin doesn't seem to work with the text-inputs [no enter/comma-effect, no tag-creation, only normal inputting text] that were dynamically created.

What's the workaround?

softvar avatar May 09 '14 22:05 softvar

I think this is just a JQuery question, not tag-manager specific:

If you're initialising the plugin during document-ready, then creating more textfields later, you will need to initialise those new textfields with the plugin. You could alternatively use jquery delegate() or on() to bind to "future" textfields (I used live() in the past for this, but this is now removed).

scipilot avatar Feb 07 '15 00:02 scipilot