{"id":17681302,"url":"https://github.com/madeindjs/select_option_filters","last_synced_at":"2025-03-30T19:14:31.927Z","repository":{"id":96109248,"uuid":"66376750","full_name":"madeindjs/select_option_filters","owner":"madeindjs","description":"Pure Javascript filters for select html tag without Jquery dependencies","archived":false,"fork":false,"pushed_at":"2016-08-24T06:39:45.000Z","size":8,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-05T21:41:48.219Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/madeindjs.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-08-23T14:56:25.000Z","updated_at":"2025-01-09T21:02:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"c8c73146-07cf-4f55-8564-1935b3fd8459","html_url":"https://github.com/madeindjs/select_option_filters","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madeindjs%2Fselect_option_filters","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madeindjs%2Fselect_option_filters/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madeindjs%2Fselect_option_filters/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madeindjs%2Fselect_option_filters/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/madeindjs","download_url":"https://codeload.github.com/madeindjs/select_option_filters/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246365651,"owners_count":20765549,"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-24T09:10:45.208Z","updated_at":"2025-03-30T19:14:31.899Z","avatar_url":"https://github.com/madeindjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Select Option Filter\n====================\n\n**javascript** filters for `select` html tag without Jquery dependencies.\n\n*inspired from this [Stackoverflow question](http://stackoverflow.com/questions/27713621/how-search-into-options-of-select-tag-html-without-plugin)*\n\nUsage\n-----\n\n### Simple search\n\nAdd simply an `input` tag before to lock all non-match value in the `section tag`\n\n~~~html\n\u003cselect id=\"combobox\"\u003e\n\t\u003coption value=\"C++\"\u003eC++\u003c/option\u003e\n\t\u003coption value=\"JavaScript\"\u003eJavaScript\u003c/option\u003e\n\t\u003coption value=\"PHP\"\u003ePHP\u003c/option\u003e\n\t\u003coption value=\"Python\"\u003ePython\u003c/option\u003e\n\t\u003coption value=\"Ruby\"\u003eRuby\u003c/option\u003e\n\u003c/select\u003e\n\n\u003cscript src=\"selectOptionFilter.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\"\u003e\n\t\tadd_filter(\"combobox\");\n\u003c/script\u003e\n~~~\n\n### Two section search\n\nExtract the first word of all `option` to group them into a primary section. The second section show all possibles choices.\n\n~~~html\n\u003cselect id=\"combobox\"\u003e\n\t\u003coption value=\"C++\"\u003eC++\u003c/option\u003e\n\t\u003coption value=\"JavaScript\"\u003eJavaScript\u003c/option\u003e\n\t\u003coption value=\"PHP\"\u003ePHP\u003c/option\u003e\n\t\u003coption value=\"Python\"\u003ePython\u003c/option\u003e\n\t\u003coption value=\"Ruby\"\u003eRuby\u003c/option\u003e\n\u003c/select\u003e\n\n\u003cscript src=\"selectOptionFilter.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\"\u003e\n\tadd_first_word_filter(\"fw_combobox\", function(){\n\t\tconsole.log('value applied');\n\t});\n\u003c/script\u003e\n~~~\n\n\nAuthor\n------\n\n[Rousseau Alexandre][madeindjs]\n\nLicense\n-------\n\n[MIT](https://opensource.org/licenses/MIT)\n[madeindjs]: https://github.com/madeindjs/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadeindjs%2Fselect_option_filters","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmadeindjs%2Fselect_option_filters","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadeindjs%2Fselect_option_filters/lists"}