{"action":"created","issue":{"url":"https://api.github.com/repos/select2/select2/issues/4175","repository_url":"https://api.github.com/repos/select2/select2","labels_url":"https://api.github.com/repos/select2/select2/issues/4175/labels{/name}","comments_url":"https://api.github.com/repos/select2/select2/issues/4175/comments","events_url":"https://api.github.com/repos/select2/select2/issues/4175/events","html_url":"https://github.com/select2/select2/issues/4175","id":132799622,"number":4175,"title":"Not working for dynamically inserted elements","user":{"login":"efusionsoft","id":5202874,"avatar_url":"https://avatars2.githubusercontent.com/u/5202874?v=4","gravatar_id":"","url":"https://api.github.com/users/efusionsoft","html_url":"https://github.com/efusionsoft","followers_url":"https://api.github.com/users/efusionsoft/followers","following_url":"https://api.github.com/users/efusionsoft/following{/other_user}","gists_url":"https://api.github.com/users/efusionsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/efusionsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/efusionsoft/subscriptions","organizations_url":"https://api.github.com/users/efusionsoft/orgs","repos_url":"https://api.github.com/users/efusionsoft/repos","events_url":"https://api.github.com/users/efusionsoft/events{/privacy}","received_events_url":"https://api.github.com/users/efusionsoft/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-02-10T19:51:00Z","updated_at":"2018-02-27T06:59:14Z","closed_at":"2016-02-11T04:59:15Z","author_association":"NONE","body":"Is it possible to make this working for dynamically (using Jquery and not ajax ) elements?\n\nBasically, using JQuery I would add a new row with a select element and want to bind that new element with the select2.\n\n<img width=\"590\" alt=\"capture\" src=\"https://cloud.githubusercontent.com/assets/5202874/12959680/81b0c390-d05d-11e5-9d8c-7b7160b9c446.PNG\">\n"},"comment":{"url":"https://api.github.com/repos/select2/select2/issues/comments/368767092","html_url":"https://github.com/select2/select2/issues/4175#issuecomment-368767092","issue_url":"https://api.github.com/repos/select2/select2/issues/4175","id":368767092,"user":{"login":"gruol","id":20844612,"avatar_url":"https://avatars2.githubusercontent.com/u/20844612?v=4","gravatar_id":"","url":"https://api.github.com/users/gruol","html_url":"https://github.com/gruol","followers_url":"https://api.github.com/users/gruol/followers","following_url":"https://api.github.com/users/gruol/following{/other_user}","gists_url":"https://api.github.com/users/gruol/gists{/gist_id}","starred_url":"https://api.github.com/users/gruol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gruol/subscriptions","organizations_url":"https://api.github.com/users/gruol/orgs","repos_url":"https://api.github.com/users/gruol/repos","events_url":"https://api.github.com/users/gruol/events{/privacy}","received_events_url":"https://api.github.com/users/gruol/received_events","type":"User","site_admin":false},"created_at":"2018-02-27T06:59:14Z","updated_at":"2018-02-27T06:59:14Z","author_association":"NONE","body":" setTimeout(function(){\r\n    $('.select2').select2();\r\n  }, 100);\r\nuse this when adding new row"}}
{"actor":{"display_login":"gruol"}}