Hello,
How the Change Function works in DropdownlistFor in this example:
@Html.EJS().DropDownListFor(c => c.Tecnico_id).Change("changetecnico").ShowClearButton(true).AllowFiltering(true).Width("98%").Placeholder("Selecione").DataSource((IEnumerable<Object>)ViewBag.tecnico).Fields(new Syncfusion.EJ2.DropDowns.DropDownListFieldSettings { Text = "Nome_fantasia", Value = "Favorecido_id" }).Render()
<script>
function changetecnico() {
var dropproduto = document.getElementById('Tecnico_id').ej2_instances[0];
var valueid = dropproduto.value(); // I need get the value
...
}
</script>
Thanks