Greetings from Stack Overflow!
I have a cruel question on Javascript/Jquery
that is consuming me longer than I would like (heh!) - I would like to filter a Dropdownlist
based on the options of another Dropdownlist
.
The image below represents more or less what I'm hoping to do!
Here'sthepartofHTMLthatdoesthis:
<divclass="form-group col-sm-3">
<label>Nome do cadastro:</label>
@Html.DropDownListFor(m => m.FinancialItems, new SelectList(Model.FinancialItems, "Description", "Description"),
new { @id = "nomeCadastro", @class = "form-control" })
</div>
This class fetches the data directly from the database and populates it with a simple "toList ()".
I'm using Javascript
, JQuery
, and C#
with MVC5
.
Is it possible to do this directly in JS/JQuery
? (If there is a API/Plugin
that deals with this, it works!
Thank you !!!!!!!!!