search plugins jquery
August 26, 2009 by admin · Leave a Comment
If you need to make a search option for your site you will find this autosugest plugins quite helpfull.
Some new features include:
- Improved cross-browser compatibility (tested to work the same across Firefox/Safari/IE6/IE7)
- Cache bug has been fixed that caused suggestions to “forget” to hide
- Moved some stylings from JavaScript to CSS
- Cleaned up code, started heavy commenting
- Not exactly a new feature, but jquery.suggest will soon be on jQuery’s plugin page
Autocomplete an input field to enable users quickly finding and selecting some value, leveraging searching and filtering.
By giving an autocompleted field focus or entering something into it, the plugin starts searching for matching entries and displays a list of values to choose from. By entering more characters, the user can filter down the list to better matches.
This is modification of Dylan Verheul’s jQuery Autcomplete plug-in. I customized his library adding the features I needed and fixing issues I considered bugs.
This script is based on jQuery Autocomplete plugin made by PengoWorks.
It has many options and is quite easy to setup in your page.
You can pass advanced options as a JavaScript object, hashes etc.
It’s easily to edit the style of the dropdown result box, there are a couple of css classes.
- You can use local arrays of data (in javascript arrays), so you don’t have to use AJAX to query your server
- Limit you number of results dropdown to XX (good for limiting the results to users)
- Autofill pre-populates text box as you type
- New findValue() method can be used to programmatically determine if the value in the box is a valid option. (Useful for verifying the text entered is an existing value option.)
Attach AJAX driven autocomplete/sugestion box to text input fields.
just a tutorial
searches on a table
Related posts: