Comparing
#9 with
#12
Tags
deprecated, CAutoComplete
Content
> Note: CAutoComplete is deprecated since Yii 1.1.3. Consider using CJuiAutoComplete.
Have you ever wanted to use an auto-complete field to look up a user or some other data, but want the database ID of that user or data returned as well so that you can more easily perform some function when the form is submitted? Thanks to [Yii's CAutoComplete widget](http://www.yiiframework.com/doc/api/CAutoComplete) and [jQuery's Autocomplete plugin](http://plugins.jquery.com/project/jq-autocomplete), it's really quite simple.
In overview, assuming that you are looking up and retrieving your data set for the autocomplete widget from a database, there are basically three steps:[...]
Now that the basics are out of the way, review the documentation for [Yii's CAutoComplete widget](http://www.yiiframework.com/doc/api/CAutoComplete) and [jQuery's Autocomplete plugin](http://plugins.jquery.com/project/jq-autocomplete) to find more ways to customize and use autocomplete functionality in your Yii project.
### Links
[Chinese version](http://projects.ourplanet.tk/node/95)