{"action":"closed","issue":{"url":"https://api.github.com/repos/zeroclipboard/zeroclipboard/issues/562","labels_url":"https://api.github.com/repos/zeroclipboard/zeroclipboard/issues/562/labels{/name}","comments_url":"https://api.github.com/repos/zeroclipboard/zeroclipboard/issues/562/comments","events_url":"https://api.github.com/repos/zeroclipboard/zeroclipboard/issues/562/events","html_url":"https://github.com/zeroclipboard/zeroclipboard/issues/562","id":65113683,"number":562,"title":"I cannot use data-clipboard-target like the example","user":{"login":"efkan","id":6974198,"avatar_url":"https://avatars.githubusercontent.com/u/6974198?v=3","gravatar_id":"","url":"https://api.github.com/users/efkan","html_url":"https://github.com/efkan","followers_url":"https://api.github.com/users/efkan/followers","following_url":"https://api.github.com/users/efkan/following{/other_user}","gists_url":"https://api.github.com/users/efkan/gists{/gist_id}","starred_url":"https://api.github.com/users/efkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/efkan/subscriptions","organizations_url":"https://api.github.com/users/efkan/orgs","repos_url":"https://api.github.com/users/efkan/repos","events_url":"https://api.github.com/users/efkan/events{/privacy}","received_events_url":"https://api.github.com/users/efkan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-30T01:08:41Z","updated_at":"2015-03-30T02:13:17Z","closed_at":"2015-03-30T02:13:17Z","body":"Hello,\r\n\r\nI've been trying to implement codes second item from the below address\r\nhttps://github.com/zeroclipboard/zeroclipboard/blob/master/docs/instructions.md#text-to-copy\r\n\r\nThe below example looks like very nice. However I spent 8 hours and I couldn't be successful.\r\nhttp://zeroclipboard.org/#demo\r\n\r\nActually I need to use ZeroClipboard for two different elements. I can accomplish if I use for just one elements. Otherwise every time second constructed element's copy operation works.\r\n\r\n    <body>\r\n\r\n          <div class=\"form-group\">\r\n             <label for=\"client_id\" class=\"control-label\">Client ID:</label>\r\n             <button id=\"copy_id\" data-clipboard-target=\"client_id\">Copy ID</button>\r\n             <input id=\"client_id\" class=\"form-control\" >\r\n         </div>        \r\n          <div class=\"form-group\">\r\n             <label for=\"client_id\" class=\"control-label\">Client ID:</label>\r\n             <button id=\"copy_secret\" data-clipboard-target=\"client_secret\">Copy Secret</button>\r\n             <input id=\"client_secret\" class=\"form-control\" >\r\n         </div>     \r\n\r\n         <script type=\"text/javascript\" src=\"/js/ZeroClipboard.js\"></script>\r\n                 \r\n         <script>\r\n                    // I think I should write some codes here but which codes?\r\n         </script>\r\n\r\n    </body>"}}