{"action":"created","issue":{"url":"https://api.github.com/repos/nostalgiaz/bootstrap-switch/issues/464","labels_url":"https://api.github.com/repos/nostalgiaz/bootstrap-switch/issues/464/labels{/name}","comments_url":"https://api.github.com/repos/nostalgiaz/bootstrap-switch/issues/464/comments","events_url":"https://api.github.com/repos/nostalgiaz/bootstrap-switch/issues/464/events","html_url":"https://github.com/nostalgiaz/bootstrap-switch/issues/464","id":84065146,"number":464,"title":"Global toggling via an attribute (data-toggle)?","user":{"login":"shehi","id":653569,"avatar_url":"https://avatars.githubusercontent.com/u/653569?v=3","gravatar_id":"","url":"https://api.github.com/users/shehi","html_url":"https://github.com/shehi","followers_url":"https://api.github.com/users/shehi/followers","following_url":"https://api.github.com/users/shehi/following{/other_user}","gists_url":"https://api.github.com/users/shehi/gists{/gist_id}","starred_url":"https://api.github.com/users/shehi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shehi/subscriptions","organizations_url":"https://api.github.com/users/shehi/orgs","repos_url":"https://api.github.com/users/shehi/repos","events_url":"https://api.github.com/users/shehi/events{/privacy}","received_events_url":"https://api.github.com/users/shehi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-02T15:08:40Z","updated_at":"2015-07-27T20:35:36Z","closed_at":null,"body":"Hi all. I suggest adding a feature which would help to enable this library globally via some kind of tag attribute ( ```data-toggle``` maybe). Instead of declaring the following for each selector in the project like:\r\n\r\n``` $(\"[name='my-checkbox']\").bootstrapSwitch(); ```\r\n\r\none could just add following attribute to the desired checkbox element and get the library enabled on-fly:\r\n\r\n```<input type=\"checkbox\" data-toggle=\"bootstrap-switch\">```\r\n\r\nCould such a feature be considered?\r\n\r\nCC: @nostalgiaz "},"comment":{"url":"https://api.github.com/repos/nostalgiaz/bootstrap-switch/issues/comments/125334993","html_url":"https://github.com/nostalgiaz/bootstrap-switch/issues/464#issuecomment-125334993","issue_url":"https://api.github.com/repos/nostalgiaz/bootstrap-switch/issues/464","id":125334993,"user":{"login":"bartclaeys","id":167579,"avatar_url":"https://avatars.githubusercontent.com/u/167579?v=3","gravatar_id":"","url":"https://api.github.com/users/bartclaeys","html_url":"https://github.com/bartclaeys","followers_url":"https://api.github.com/users/bartclaeys/followers","following_url":"https://api.github.com/users/bartclaeys/following{/other_user}","gists_url":"https://api.github.com/users/bartclaeys/gists{/gist_id}","starred_url":"https://api.github.com/users/bartclaeys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartclaeys/subscriptions","organizations_url":"https://api.github.com/users/bartclaeys/orgs","repos_url":"https://api.github.com/users/bartclaeys/repos","events_url":"https://api.github.com/users/bartclaeys/events{/privacy}","received_events_url":"https://api.github.com/users/bartclaeys/received_events","type":"User","site_admin":false},"created_at":"2015-07-27T20:35:36Z","updated_at":"2015-07-27T20:35:36Z","body":"Makes a lot of sense!"}}