on-internet
← Community

MVC (Razor) Filter DropDownList

Stack Overflow ·

I'm new to MVC and JavaScript and I have a question about DropDownList. I Build a program of "Car Renting" and I have a View that allow adding new Car to the inventory. The view include 2 dropdownlists (see below): <div class="editor-field"> @Html.DropDownList("ManufacturerId", string.Empty) @Html.ValidationMessageFor(model => model.ManufacturerId) </div> <div class="editor-label"> @Html.LabelFor(model => model.ModelId) </div> <div class="editor-field"> @Html.DropDownList("ModelId", string.Empty) @Html.ValidationMessageFor(model => model.ModelId) </div> I want that when user select a manufactu

Comments

Sign in or sign up to comment and upvote.

No comments yet.