Skip to content

Dropdown suggestions for form input either through client-side or server-side autocompletion

License

Notifications You must be signed in to change notification settings

aphan/jquery-rtsuggest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jQuery-rtsuggest

Dropdown suggestions for form input either through client-side or server-side autocompletions.

Usage

Link to scripts/styles:

<script src="/path/to/jquery.js" type="text/javascript"></script>
<script src="/path/to/jquery.rtsuggest.js" type="text/javascript"></script>
<link href="/path/to/rtsuggest.css" rel="stylesheet" type="text/css" />

Then pass rtsuggest a string array:

 $('#my-input-form').rtsuggest( ['string1', 'string2', 'string3'] );

Or a server-side script to call once (by default response should be a JSON array of strings)

 $('#my-input-form').rtsuggest( '/calling/server/once?query=alltitles', 
                                { callServerOnInputChange: false } );

Or a server-side script to call everytime the user types something different (server-side autocompleton)

 $('#my-input-form').rtsuggest( '/calling/server/on/input/change?query=', 
                                { callServerOnInputChange: true } );

About

Dropdown suggestions for form input either through client-side or server-side autocompletion

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published