pass selected value from dropdown to another dropdown

0 Answers 117 Views
DropDownList
Kate
Top achievements
Rank 1
Kate asked on 10 Apr 2023, 02:17 PM

I am trying to pass selected value from dropdownlist(GameCode) to another dropdown(GameCode2).

It is passing the value but it is not showing the value in the another dropdown.

How can I show it?

function gameDropDownOnChange(e) {

            var game= $('#GameCode').data("kendoDropDownList").value();

            $('#GameCode2').val(game).change();

}

Anton Mironov
Telerik team
commented on 13 Apr 2023, 06:52 AM

Hi Kate,

I am not sure if the selected value from the first DropDownList should be selected or added to the second DropDownList.

If the item is available and should be selected, use the "select" method:

If the item is not available in the second DropDownList, add it to its dataSource:

I hope this information helps. Let me know if further assistance is needed.


Kind Regards,
Anton Mironov

No answers yet. Maybe you can help?

Tags
DropDownList
Asked by
Kate
Top achievements
Rank 1
Share this question
or