Hi Daniel,
Thanks for Contacting Syncfusion Support.
To achieve your requirement, we suggest that you use the “selectValueByKey” method. In this method, you can dynamically select the value based on the key field. In our sample, you can select the name value from the first Autocomplete. In FocusOut event, you can dynamically select the address of the selected value by using the selectValueByKey()method.
Please refer to the below code snippet to achieve this.
<script>
function focusout(e) {
var obj = $("#selectcar").ejAutocomplete("instance");
//dynamically change value by using previous field
obj.selectValueByKey(e.value);
}
</script>
|
For your reference, please download the sample in the link below:
Please refer to our online API reference documentation for Autocomplete:
Regards,
Rekha.