I would like the list returned by CJuiAutoComplete to be filtered to just those that match at the beginnning exactly what is typed. So I want "a" to return "apple" but not "orange."
JQuery’s autocomplete has a javascript function to accomplish this:
OK. But now my problem is that I was using the source parameter originally to get the list of tags. So how can I combine both the getting of the tags and the regex in that same source parameter?
Is it possible to pass the user’s keystroke input to the Yii PHP createLeadnameList() method in my model that builds the list of tags? If not, how can I build the list of tags and then process my regex expression against it as the user types in the field?
Can you explain what the dots do before and after the CJavaScript::encode fragment in the var tags line? I know they are used for appending in PHP, but I don’t understand what is being appended in the tags variable.