CJuiAutoComplete callback

Hi all,

can anybody help me with my problem. I use CJuiAutoComplete on my page, it works fine.

but i need to fill another field, when something is selected with this autocomplet.

first field with autocomplete contains people names. second field should contain their personal numbers.

i need to attach eventhandler to select event of jquery autocomplete, but i don’t know how to do it. in yii documentation there is attachEventHandler function, but it needs php function. but i need simple js.

how can i do it? or may be i can use one autocomplete to fill to fields at on time?

at the moment names and numbers are in different tables, linked by id, but i can merge them if it can help.

Hello, just stumbled upon your post searching on the forum.

I’ve just answered a somewhat similar question here