{"action":"created","issue":{"url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/206","labels_url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/206/labels{/name}","comments_url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/206/comments","events_url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/206/events","html_url":"https://github.com/bem/bem-forum-content-ru/issues/206","id":56671888,"number":206,"title":"Фильрация по атрибутам data-*","user":{"login":"belozyorcev","id":1655916,"avatar_url":"https://avatars.githubusercontent.com/u/1655916?v=3","gravatar_id":"","url":"https://api.github.com/users/belozyorcev","html_url":"https://github.com/belozyorcev","followers_url":"https://api.github.com/users/belozyorcev/followers","following_url":"https://api.github.com/users/belozyorcev/following{/other_user}","gists_url":"https://api.github.com/users/belozyorcev/gists{/gist_id}","starred_url":"https://api.github.com/users/belozyorcev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/belozyorcev/subscriptions","organizations_url":"https://api.github.com/users/belozyorcev/orgs","repos_url":"https://api.github.com/users/belozyorcev/repos","events_url":"https://api.github.com/users/belozyorcev/events{/privacy}","received_events_url":"https://api.github.com/users/belozyorcev/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bem/bem-forum-content-ru/labels/i-bem","name":"i-bem","color":"bfe5bf"},{"url":"https://api.github.com/repos/bem/bem-forum-content-ru/labels/js","name":"js","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":21,"created_at":"2015-02-05T13:48:07Z","updated_at":"2015-02-07T19:01:02Z","closed_at":null,"body":"Как выбрать необходимый элемент из элементов блока по атрибуту ```data-*``` с каким-то значением и присвоить модификатор активности?\r\nт.е.\r\n\r\nесть подобная структура\r\n```\r\n{\r\n    block: 'menu',\r\n    content: [\r\n        {\r\n            elem: 'item',\r\n            attrs: {'data-id': 4}\r\n        },\r\n        {\r\n            elem: 'item',\r\n            attrs: {'data-id': 2}\r\n        },\r\n        {\r\n            elem: 'item',\r\n            attrs: {'data-id': 9}\r\n        },\r\n        {\r\n            elem: 'item',\r\n            attrs: {'data-id': 1}\r\n        }\r\n    ]\r\n}\r\n```\r\n\r\nкак выбрать элемент с data-id = 2 ?"},"comment":{"url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/comments/73377703","html_url":"https://github.com/bem/bem-forum-content-ru/issues/206#issuecomment-73377703","issue_url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/206","id":73377703,"user":{"login":"belyanskii","id":731113,"avatar_url":"https://avatars.githubusercontent.com/u/731113?v=3","gravatar_id":"","url":"https://api.github.com/users/belyanskii","html_url":"https://github.com/belyanskii","followers_url":"https://api.github.com/users/belyanskii/followers","following_url":"https://api.github.com/users/belyanskii/following{/other_user}","gists_url":"https://api.github.com/users/belyanskii/gists{/gist_id}","starred_url":"https://api.github.com/users/belyanskii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/belyanskii/subscriptions","organizations_url":"https://api.github.com/users/belyanskii/orgs","repos_url":"https://api.github.com/users/belyanskii/repos","events_url":"https://api.github.com/users/belyanskii/events{/privacy}","received_events_url":"https://api.github.com/users/belyanskii/received_events","type":"User","site_admin":false},"created_at":"2015-02-07T19:01:01Z","updated_at":"2015-02-07T19:01:01Z","body":"@belozyorcev хм...я сторонник того, что все всегда можно сделать куда проще :)\r\nПопробуй обрисовать задачу целиком, а я если не забуду сделаю прототип >_<"}}