{"action":"created","issue":{"url":"https://api.github.com/repos/xdan/autocomplete/issues/13","labels_url":"https://api.github.com/repos/xdan/autocomplete/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/xdan/autocomplete/issues/13/comments","events_url":"https://api.github.com/repos/xdan/autocomplete/issues/13/events","html_url":"https://github.com/xdan/autocomplete/issues/13","id":85892755,"number":13,"title":"Multiple (and dynamically added) autocomplete fields?","user":{"login":"cibulka","id":3989833,"avatar_url":"https://avatars.githubusercontent.com/u/3989833?v=3","gravatar_id":"","url":"https://api.github.com/users/cibulka","html_url":"https://github.com/cibulka","followers_url":"https://api.github.com/users/cibulka/followers","following_url":"https://api.github.com/users/cibulka/following{/other_user}","gists_url":"https://api.github.com/users/cibulka/gists{/gist_id}","starred_url":"https://api.github.com/users/cibulka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cibulka/subscriptions","organizations_url":"https://api.github.com/users/cibulka/orgs","repos_url":"https://api.github.com/users/cibulka/repos","events_url":"https://api.github.com/users/cibulka/events{/privacy}","received_events_url":"https://api.github.com/users/cibulka/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-07T11:19:58Z","updated_at":"2015-06-07T16:50:58Z","closed_at":null,"body":"Thanks for an awesome plugin!\r\n\r\nI have a form, where user can dynamically add new fields and group of fields. For better understanding, here is the screenshot of UI:\r\n\r\n![screen shot 2015-06-07 at 1 13 39 pm](https://cloud.githubusercontent.com/assets/3989833/8023700/302a04a0-0d17-11e5-8c87-ea310a7be8b4.png)\r\n\r\nIf user clicks the blueish \"Add more\" button, the group of fields gets cloned and user can add more values.\r\n\r\nEverything works for me this way - even another of your awesome plugins, [xdan/datetimepicker](https://github.com/xdan/datetimepicker/) - but Autocomplete does not. Here is my configuration script:\r\n\r\n```\r\njQuery(function($) {\r\n\t\r\n\t'use strict';\r\n\t\r\n\tfunction init($autocomplete) {\r\n\r\n\t\tvar config\t= $.parseJSON($autocomplete.attr('data-autocomplete'));\r\n\t\t\r\n\t\t$autocomplete.autocomplete(config);\r\n\t\t\r\n\t\t\r\n\t}\r\n\t\r\n\t$(document).on('ready cibulka/clone', function() {\r\n\t\t\r\n\t\tvar $autocompletes = $('.cibm-input--autocomplete');\r\n\t\t\r\n\t\t$autocompletes.each(function() {\r\n\t\t\t\r\n\t\t\tvar $autocomplete = $(this);\r\n\t\t\tinit($autocomplete);\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\t\r\n\t});\r\n\t\t\r\n});\r\n\r\n```\r\n\r\n`cibulka/clone` is my custom event that gets triggered whenever user adds or removes field (or group of fields). \r\n\r\nFirst autocomplete field always works (as shown in the screenshot), any other one does not. Firebug shows, that `div.xdsoft_autocomplete` gets printed below the field, but nothing is popping out when you type anything to the input. \r\n\r\nIs it possible to make it work somehow? Or is my configuration flawed? Thank you in advance!"},"comment":{"url":"https://api.github.com/repos/xdan/autocomplete/issues/comments/109772373","html_url":"https://github.com/xdan/autocomplete/issues/13#issuecomment-109772373","issue_url":"https://api.github.com/repos/xdan/autocomplete/issues/13","id":109772373,"user":{"login":"cibulka","id":3989833,"avatar_url":"https://avatars.githubusercontent.com/u/3989833?v=3","gravatar_id":"","url":"https://api.github.com/users/cibulka","html_url":"https://github.com/cibulka","followers_url":"https://api.github.com/users/cibulka/followers","following_url":"https://api.github.com/users/cibulka/following{/other_user}","gists_url":"https://api.github.com/users/cibulka/gists{/gist_id}","starred_url":"https://api.github.com/users/cibulka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cibulka/subscriptions","organizations_url":"https://api.github.com/users/cibulka/orgs","repos_url":"https://api.github.com/users/cibulka/repos","events_url":"https://api.github.com/users/cibulka/events{/privacy}","received_events_url":"https://api.github.com/users/cibulka/received_events","type":"User","site_admin":false},"created_at":"2015-06-07T16:50:58Z","updated_at":"2015-06-07T16:50:58Z","body":"It seems that I had an issue with duplicate IDs. Sorry for the noise & closing the issue!"}}