{"id":20608682,"url":"https://github.com/ikcede/jquery-autocomplete","last_synced_at":"2025-08-24T21:24:26.429Z","repository":{"id":13938358,"uuid":"16638096","full_name":"ikcede/jquery-autocomplete","owner":"ikcede","description":"Towards some more customization for autocomplete outputs","archived":false,"fork":false,"pushed_at":"2014-03-01T19:01:37.000Z","size":136,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-06T17:49:07.578Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ikcede.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":"2014-02-08T07:01:27.000Z","updated_at":"2014-03-01T19:01:38.000Z","dependencies_parsed_at":"2022-08-24T09:00:51.162Z","dependency_job_id":null,"html_url":"https://github.com/ikcede/jquery-autocomplete","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ikcede/jquery-autocomplete","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikcede%2Fjquery-autocomplete","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikcede%2Fjquery-autocomplete/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikcede%2Fjquery-autocomplete/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikcede%2Fjquery-autocomplete/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ikcede","download_url":"https://codeload.github.com/ikcede/jquery-autocomplete/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikcede%2Fjquery-autocomplete/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271953143,"owners_count":24849290,"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","status":"online","status_checked_at":"2025-08-24T02:00:11.135Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-16T10:11:20.370Z","updated_at":"2025-08-24T21:24:26.389Z","avatar_url":"https://github.com/ikcede.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"jquery-autocomplete\n===================\n\nTowards some more customization for autocomplete outputs.\nOptimized for Chrome as usual.\n\nBasic usage:\n\n```html\n\u003cinput type='text' id='autocomplete'\u003e\u003c/input\u003e\n\n\u003cscript type='text/javascript'\u003e\n$(\"#autocomplete\").autocomplete();\n\u003c/script\u003e\n```\n\nFor additional options:\n\n```javascript\n$(\"autocomplete\").autocomplete({\n\tdata: \t\t\t\t[],\t\t\t\t\t\t// Array of words to match against\n\ttarget: \t\t\t$(\"#\"+id+\"-area\"),\t\t// Output div selector\n\talgorithm: \t\t\t\"string-match\", \t\t// Choose which algorithm you want\n\tsorting: \t\t\t\"alphabetical\",\t\t\t// How the output is sorted\n\thideTargetIfEmpty:  false,\t\t\t\t\t// Will hide target if no data recieved\n\tcreateTarget:\t\ttrue,\t\t\t\t\t// Creates target if not existing\n\tdisplayAllIfEmpty:  false\t\t\t\t\t// Displays target if empty\n});\n```\n\nThe only available algorithm right now is the \"string-match\" algorithm. \nThis algorithm does simple indexOf matching of strings, after converting the input into lowercase.\n\nOnly supported sorting right now is alphabetical.\n\nTarget is populated like this: \nIf \"autocomplete\" is the id of the original element,\n\n```html\n\u003cul id='autocomplete-aclist'\u003e\n\t\u003cli class='autocomplete-acitem'\u003eMatched item\u003c/li\u003e\n\t\u003cli class='autocomplete-acitem'\u003eMatched item\u003c/li\u003e\n\t\u003c!-- ... --\u003e\n\u003c/ul\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fikcede%2Fjquery-autocomplete","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fikcede%2Fjquery-autocomplete","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fikcede%2Fjquery-autocomplete/lists"}