https://github.com/interviewstreet/autocomplete
An auto complete javascript plugin.
https://github.com/interviewstreet/autocomplete
Last synced: 4 months ago
JSON representation
An auto complete javascript plugin.
- Host: GitHub
- URL: https://github.com/interviewstreet/autocomplete
- Owner: interviewstreet
- Created: 2013-03-17T19:25:18.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-03-18T00:12:53.000Z (over 13 years ago)
- Last Synced: 2025-02-07T23:27:11.824Z (over 1 year ago)
- Size: 101 KB
- Stars: 1
- Watchers: 96
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Interviewstreet Autocomplete
============
An auto complete javascript plugin that automatically queries for the following fields:
1. Companies
2. Countries
3. Schools
4. Cities
Prerequisites :
===========
Any javascript autocomplete library - currently supports jquery-ui.
Usage :
===========
Include the requisite autocomplete library like this:
` `
After this include the plugin:
` `
Now suppose we have a textarea with id `"auto"` like this:
``
To make this an autocomplete field, simply do this:
`$('#auto').ISAutoComp({'library':'jquery-ui'});`
Parameters :
============
1. `'library'` : Specifies which autocomplete library to use - Currently only 1 option `'jquery-ui'`
2. `'category'` : Specifies the category for autocomplete - Options are : `'school'`, `'country'`, `'city'`, `'company'`
Example :
============
Autocomplete field for schools:
``
`
$('#auto').ISAutoComp({'library':'jquery-ui','category':'school'});
`