V
V
Vyacheslav Kuznetsov2018-10-18 12:06:55
ASP.NET
Vyacheslav Kuznetsov, 2018-10-18 12:06:55

How to implement dynamic update of dropdownlist?

Good afternoon!
I am working on creating a website for a translation company.
I use ASP.NET MVC 5, the question is this:
the site has a questionnaire for the translator, in which he selects the languages ​​​​that he owns, and below he must determine the language pairs of the translation.
It should look something like this (roughly):

Picture
5bc84c9e2c013250964627.png

in the first drop-down list (first language) and in the second (second language), only those languages ​​that the user has selected should appear, and if the user changes languages, the drop-down list is automatically updated as well.
How to implement this, please help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
netrox, 2018-10-18
@slavenski

Use ajax. On the "onchange" event, send an ajax request to the controller which will return json . You parse the resulting json on the client side and update the DOM.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question