{"action":"created","issue":{"url":"https://api.github.com/repos/thednp/bootstrap.native/issues/18","labels_url":"https://api.github.com/repos/thednp/bootstrap.native/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/thednp/bootstrap.native/issues/18/comments","events_url":"https://api.github.com/repos/thednp/bootstrap.native/issues/18/events","html_url":"https://github.com/thednp/bootstrap.native/issues/18","id":107914407,"number":18,"title":"Unable to use dynamically added elements to control things like modal or carousel","user":{"login":"osdlge","id":12647729,"avatar_url":"https://avatars.githubusercontent.com/u/12647729?v=3","gravatar_id":"","url":"https://api.github.com/users/osdlge","html_url":"https://github.com/osdlge","followers_url":"https://api.github.com/users/osdlge/followers","following_url":"https://api.github.com/users/osdlge/following{/other_user}","gists_url":"https://api.github.com/users/osdlge/gists{/gist_id}","starred_url":"https://api.github.com/users/osdlge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osdlge/subscriptions","organizations_url":"https://api.github.com/users/osdlge/orgs","repos_url":"https://api.github.com/users/osdlge/repos","events_url":"https://api.github.com/users/osdlge/events{/privacy}","received_events_url":"https://api.github.com/users/osdlge/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/thednp/bootstrap.native/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/thednp/bootstrap.native/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-23T13:04:25Z","updated_at":"2015-09-24T00:17:44Z","closed_at":"2015-09-23T13:42:10Z","body":"When adding dynamic elements to a page they are unable to interact with elements they were already present. For example add this into scripts.js and refresh the index page\r\n\r\n```\r\ndocument.addEventListener('DOMContentLoaded', function waitForDomToFullyLoad(event) {\r\n   var newButton = document.createElement(\"div\");\r\n   newButton.innerHTML = '<button id=\"TEST1\" type=\"button\" class=\"btn btn-warning btn-lg\" data-toggle=\"modal\" data-target=\"#myModal\">DYNAMIC BUTTON</button>';\r\n   var modalExample = document.getElementById('exampleModal');\r\n   exampleModal.appendChild(newButton);\r\n});\r\n```\r\ngo to the bottom of the modal examples and click dynamic button\r\n\r\nExpected results:\r\nthe modal myModal opens\r\n\r\nActual results:\r\nNothing happens\r\n"},"comment":{"url":"https://api.github.com/repos/thednp/bootstrap.native/issues/comments/142766796","html_url":"https://github.com/thednp/bootstrap.native/issues/18#issuecomment-142766796","issue_url":"https://api.github.com/repos/thednp/bootstrap.native/issues/18","id":142766796,"user":{"login":"thednp","id":6761246,"avatar_url":"https://avatars.githubusercontent.com/u/6761246?v=3","gravatar_id":"","url":"https://api.github.com/users/thednp","html_url":"https://github.com/thednp","followers_url":"https://api.github.com/users/thednp/followers","following_url":"https://api.github.com/users/thednp/following{/other_user}","gists_url":"https://api.github.com/users/thednp/gists{/gist_id}","starred_url":"https://api.github.com/users/thednp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thednp/subscriptions","organizations_url":"https://api.github.com/users/thednp/orgs","repos_url":"https://api.github.com/users/thednp/repos","events_url":"https://api.github.com/users/thednp/events{/privacy}","received_events_url":"https://api.github.com/users/thednp/received_events","type":"User","site_admin":false},"created_at":"2015-09-24T00:17:44Z","updated_at":"2015-09-24T00:17:44Z","body":"Naa, no need :)\r\n\r\nI prefer speed."}}