I am using aspnet MVC 5 in Visual Studio 2014.1 I have a combobox that is filled with data from the database:
ViewBag.Brans = new SelectList(db.Brans.OrderBy(m => m.Ad), "No", "Ad");
@Html.DropDownList("Brans", null, htmlAttributes: new { @class = "form-control" })
Then i have another combobox. and i want to fill that combobox after i select an option from first combo. Its like selecting country from the first combo. then cities will appear in the second one.
Does any of you know how to do this?