Hi,
I’m developing a personal website to learn more about Yii framework.
I’ve added the CJUIAutocomplete-Widget which works fine.
The CJuiAutoComplete-Widget lists the found cities from my database together with the ID when the user enters the letters of the city in a text field.
The ID is stored in a hidden field if the user clicks on the suggested list from the CJUIAutocomplete result.
And the city is displayed in the text field.
But when the user deletes the city from the text field, then the ID will not be deleted from the hidden field.
How can I accomplish that?
What can I do so that the ID is deleted if the text field is being emptied again?
Kind regards