Hi!
I need to know what autocomplete object was inkoved when the user clicks an option of autocomplete. I need to get the id/name.
Or, also another option is to send a parameter when the user clicks an option of autocomplete to know what was invoked.
The index 3 (the idea is make it dinamically) is what i want to send as parameter or get the name/id of the autocomplete:
@Html.EJ().AutocompleteFor(x => x[i].AnswerText).Datasource(Model[i].lstAnswers).AutocompleteFields(f => f.Text("AnswerText").Key("AnswerID")).Width("200").EmptyResultText("No existe").ClientSideEvents(e => e.Select("OnSelect"))
function OnSelect(arg) {
$("input[name*='[3].AnswerSelected']").val(arg.key);
}
Thanks!