{"id":17750700,"url":"https://github.com/lloiser/jquery-searcher","last_synced_at":"2025-05-12T19:59:52.163Z","repository":{"id":12839717,"uuid":"15515272","full_name":"lloiser/jquery-searcher","owner":"lloiser","description":"Connects any list-like data with an input for searching. Try it here","archived":false,"fork":false,"pushed_at":"2016-07-24T17:41:48.000Z","size":75,"stargazers_count":68,"open_issues_count":1,"forks_count":26,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-05-02T19:06:41.619Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://lloiser.github.io/jquery-searcher/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lloiser.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-12-29T21:25:16.000Z","updated_at":"2024-09-03T14:48:49.000Z","dependencies_parsed_at":"2022-08-31T00:00:15.593Z","dependency_job_id":null,"html_url":"https://github.com/lloiser/jquery-searcher","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lloiser%2Fjquery-searcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lloiser%2Fjquery-searcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lloiser%2Fjquery-searcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lloiser%2Fjquery-searcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lloiser","download_url":"https://codeload.github.com/lloiser/jquery-searcher/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253814724,"owners_count":21968555,"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-10-26T12:23:26.248Z","updated_at":"2025-05-12T19:59:52.138Z","avatar_url":"https://github.com/lloiser.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jQuery Searcher Plugin\n\nThe jQuery Searcher Plugin connects any list-like data with an input for searching.\n\n## Installation\n\nDownload the latest [release](https://github.com/lloiser/jquery-searcher/releases/) of this plugin on GitHub.\n\nInclude the jquery.searcher.js script after the jQuery library (unless you are packaging scripts somehow else):\n```html\n\u003cscript src=\"/path/to/jquery.searcher.js\"\u003e\u003c/script\u003e\n```\n\n## Usage\n\n```js\n$(\"...\").searcher({\n    itemSelector:  \"...\", // jQuery selector for the data item element\n    textSelector:  \"...\", // jQuery selector for the element which contains the text\n    inputSelector: \"...\"  // jQuery selector for the input element\n});\n```\n\n## Example\n\nSee the live version of the following example on the [GitHub page](http://lloiser.github.io/jquery-searcher/).\n\nGiven the following HTML markup:\n```html\n\u003cinput id=\"tablesearchinput\" /\u003e\n\u003ctable id=\"tabledata\"\u003e\n    \u003ctbody\u003e\n        \u003ctr\u003e\n            \u003ctd\u003e#1\u003c/td\u003e\n            \u003ctd\u003eLike a Rolling Stone\u003c/td\u003e\n            \u003ctd\u003eBob Dylan\u003c/td\u003e\n            \u003ctd\u003e1965\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003e#2\u003c/td\u003e\n            \u003ctd\u003e(I Can't Get No) Satisfaction\u003c/td\u003e\n            \u003ctd\u003eThe Rolling Stones\u003c/td\u003e\n            \u003ctd\u003e1965\u003c/td\u003e\n        \u003c/tr\u003e\n        ...\n    \u003c/tbody\u003e\n\u003c/table\u003e\n```\nAnd executing the following script connects the input with the table:\n```js\n$(\"#tabledata\").searcher({\n    inputSelector: \"#tablesearchinput\"\n    // itemSelector (tbody \u003e tr) and textSelector (td) already have proper default values\n});\n```\n\n## Documentation\n\nThe following table contains all possible options which can be passed to the plugin.\n\n\u003ctable id=\"documentation\"\u003e\n    \u003cthead\u003e\n        \u003ctr\u003e\n            \u003cth\u003eName\u003c/th\u003e\n            \u003cth\u003eType\u003c/th\u003e\n            \u003cth\u003eDescription\u003c/th\u003e\n        \u003c/tr\u003e\n    \u003c/thead\u003e\n    \u003ctbody\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eitemSelector\u003c/td\u003e\n        \u003ctd\u003estring\u003c/td\u003e\n        \u003ctd\u003e\n            jQuery selector for the data item element (e.g. \u003ccode\u003etr, li\u003c/code\u003e).\u003cbr /\u003e\n            Default: \u003ccode\u003e\"tbody \u0026gt; tr\"\u003c/code\u003e\n        \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003etextSelector\u003c/td\u003e\n        \u003ctd\u003estring\u003c/td\u003e\n        \u003ctd\u003e\n            jQuery selector for the element which contains the text within the item element.\u003cbr /\u003e\n            If not specified the data item element is used instead.\u003cbr /\u003e\n            Default: \u003ccode\u003e\"td\"\u003c/code\u003e\n        \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003einputSelector\u003c/td\u003e\n        \u003ctd\u003estring\u003c/td\u003e\n        \u003ctd\u003e\n            jQuery selector for the input element which is used to filter the data.\u003cbr /\u003e\n            Default: \u003ccode\u003e\"\"\u003c/code\u003e\n        \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003ecaseSensitive\u003c/td\u003e\n        \u003ctd\u003ebool\u003c/td\u003e\n        \u003ctd\u003e\n            Determines whether the search should be case sensitive or not.\u003cbr /\u003e\n            Default: \u003ccode\u003efalse\u003c/code\u003e\n        \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003etoggle\u003c/td\u003e\n        \u003ctd\u003efunction\u003c/td\u003e\n        \u003ctd\u003e\n            this function is called for each data item element when the text in the input changes.\u003cbr /\u003e\n            it is called with the data item element and a boolean value indicating whether the item contains the text or not.\u003cbr /\u003e\n            Default: \u003ccode\u003efunction(item, containsText) { $(item).toggle(containsText); }\u003c/code\u003e\n        \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003c/tbody\u003e\n\u003c/table\u003e\n\n## License\n\nCopyright (c) 2014 Lukas Beranek Licensed under the MIT license.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flloiser%2Fjquery-searcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flloiser%2Fjquery-searcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flloiser%2Fjquery-searcher/lists"}