No that doesn't help, because it only shows how to fill the field. I saw it before.
What i need is, that the field is filled with a string like "Firstname, Lastname" and the ID of this selection is submitted.

No that doesn't help, because it only shows how to fill the field. I saw it before.
What i need is, that the field is filled with a string like "Firstname, Lastname" and the ID of this selection is submitted.

@daonhack: we have had this link before, but i am realy new to this (working with CJuiAutocomplete).

@tri: i tried this example before, but the id doesn't get posted, and if i change the value in this array to the id i need for post, it is shown in autocomplete-field after selection. i'd like to get the value shown in the autocomplete-field and the ID set in an hiddenfield or else on selecting an entry in the autocomplete-field.

1.) no, i didn't enable AjaxValidation
2.) no, i did no tests at all, but i should do and i don't think the problem is here
3.) yes, you are right. no rendering needed. only echoing by "echo CJSON::..."

I have a question, is there a way to update the value of the autoComplete input field on select ?
For example, on an autoComplete Suburb field which contains suburb, postcode, I want only suburb to show up after an option is selected.
I tried to set the value to only show suburb in the select event but it didn't work, it always go back to the full string of suburb & postcode.

The idea is that if the user changes the value, I delete the the id. For example, if there is a user called 'John Smith' with an Id = 24, the widget will return the id if 'John Smith' is selected from the list, but if is changed to 'John Smithson', then the Id will come blank.