{"id":18480773,"url":"https://github.com/felquis/jqueryeachselector","last_synced_at":"2025-04-08T16:31:29.142Z","repository":{"id":6407541,"uuid":"7645760","full_name":"felquis/jQueryEachSelector","owner":"felquis","description":"Select multiple elements with complex selectors to do the same action in all","archived":false,"fork":false,"pushed_at":"2014-12-08T12:31:07.000Z","size":211,"stargazers_count":6,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T16:11:41.146Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/felquis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-01-16T13:01:02.000Z","updated_at":"2017-11-13T03:03:50.000Z","dependencies_parsed_at":"2022-08-28T12:13:30.569Z","dependency_job_id":null,"html_url":"https://github.com/felquis/jQueryEachSelector","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felquis%2FjQueryEachSelector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felquis%2FjQueryEachSelector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felquis%2FjQueryEachSelector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felquis%2FjQueryEachSelector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/felquis","download_url":"https://codeload.github.com/felquis/jQueryEachSelector/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247882021,"owners_count":21011976,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T12:20:03.127Z","updated_at":"2025-04-08T16:31:28.819Z","avatar_url":"https://github.com/felquis.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## jQueryEachSelector [![Build Status](https://travis-ci.org/felquis/jQueryEachSelector.png?branch=master)](https://travis-ci.org/felquis/jQueryEachSelector)\n\nSelect multiple elements with complex selectors to do the same action in all.\n\n## How to use\nPass a array of selectors to the plugin function, as below:\n\n```js\n$.eachSelector([\n  $('#element').find('a.test'),\n  '#otherElement \u003e a',\n  $('input[name=\"test\"]').parents('p')\n]).css({ color : 'yellow'});\n```\n\nThe plugin will concatenate the selectors and returns them.\n\n## Another approach\nTo do the same thing without using this plugin, do as below:\n```js\n  $('.element').find('\u003e a.test').add(\n    $('#otherElement \u003e a')\n  ).add(\n    $('input[name=\"test\"]').parents('p')\n  ).css({\n      color : 'red'\n  });\n```\nThis works perfectly, but it is hard to write and understand, don't you thing?\n\n## Browser support\nThis plugin works fine from jQuery 1.4 until the last version.\n\n## Build this project\nInstall [NodeJS](http://nodejs.org/download/), [GIT](http://git-scm.com/downloads) if you don't have it yet, [bower](http://bower.io/) and [grunt](http://gruntjs.com/)\n```bash\nnpm install bower\nnpm install grunt-cli\n```\n\n1 - Clone it:\n  `git clone git@github.com:felquis/jQueryEachSelector.git`\n\n2 - Then go to the project's folder:\n  `cd jQueryEachSelector`\n\n3 - Install dependencies:\n  `npm install`\n\n4 - Run:\n  `grunt build`\n\nMaybe you'll need to use the `sudo` prefix\n\n## Contributing\n \n1. Fork it!\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request :D\n\n## License\nUse in everything you feel necessary.\nAnd do not remove the link from this repository :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelquis%2Fjqueryeachselector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffelquis%2Fjqueryeachselector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelquis%2Fjqueryeachselector/lists"}