{"action":"created","issue":{"url":"https://api.github.com/repos/selectize/selectize.js/issues/1017","repository_url":"https://api.github.com/repos/selectize/selectize.js","labels_url":"https://api.github.com/repos/selectize/selectize.js/issues/1017/labels{/name}","comments_url":"https://api.github.com/repos/selectize/selectize.js/issues/1017/comments","events_url":"https://api.github.com/repos/selectize/selectize.js/issues/1017/events","html_url":"https://github.com/selectize/selectize.js/issues/1017","id":138829573,"number":1017,"title":"reinitialize with dynamic content from ajax","user":{"login":"Redani","id":328526,"avatar_url":"https://avatars.githubusercontent.com/u/328526?v=3","gravatar_id":"","url":"https://api.github.com/users/Redani","html_url":"https://github.com/Redani","followers_url":"https://api.github.com/users/Redani/followers","following_url":"https://api.github.com/users/Redani/following{/other_user}","gists_url":"https://api.github.com/users/Redani/gists{/gist_id}","starred_url":"https://api.github.com/users/Redani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Redani/subscriptions","organizations_url":"https://api.github.com/users/Redani/orgs","repos_url":"https://api.github.com/users/Redani/repos","events_url":"https://api.github.com/users/Redani/events{/privacy}","received_events_url":"https://api.github.com/users/Redani/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/selectize/selectize.js/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-03-06T19:56:00Z","updated_at":"2016-04-06T15:36:07Z","closed_at":"2016-04-01T22:11:00Z","body":"Hi, and thanks for this lovely plugin ;)\r\n\r\nI'm wondering if there is a better way to use selectize on new \"select\" elements created using Ajax. i currenty do this:\r\n\r\n    $.ajax({\r\n\t\turl: \"/fine.php\",\r\n\t\tsuccess: function(result) {\r\n\t\t\t$(\"#container\").html('<p>' + result + '</p>');\r\n\t\t\t$(\"#container select.selectize\").selectize();\r\n\t\t}\r\n    });\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/selectize/selectize.js/issues/comments/206432971","html_url":"https://github.com/selectize/selectize.js/issues/1017#issuecomment-206432971","issue_url":"https://api.github.com/repos/selectize/selectize.js/issues/1017","id":206432971,"user":{"login":"Redani","id":328526,"avatar_url":"https://avatars.githubusercontent.com/u/328526?v=3","gravatar_id":"","url":"https://api.github.com/users/Redani","html_url":"https://github.com/Redani","followers_url":"https://api.github.com/users/Redani/followers","following_url":"https://api.github.com/users/Redani/following{/other_user}","gists_url":"https://api.github.com/users/Redani/gists{/gist_id}","starred_url":"https://api.github.com/users/Redani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Redani/subscriptions","organizations_url":"https://api.github.com/users/Redani/orgs","repos_url":"https://api.github.com/users/Redani/repos","events_url":"https://api.github.com/users/Redani/events{/privacy}","received_events_url":"https://api.github.com/users/Redani/received_events","type":"User","site_admin":false},"created_at":"2016-04-06T15:36:07Z","updated_at":"2016-04-06T15:36:07Z","body":"I already use his solution, but I was wondering if there is an option to simply or reinitialize the specific select element!"}}