[HttpPost]
public ActionResult GetData(string[] langOpt)
{
return View();
}
Result:
Best Regards,
Jiadong Meng
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
Member
2 Points
12 Posts
Multiselected dropdown list with checkboxes
Mar 18, 2020 12:56 PM|Wiktor9696|LINK
Hi I want to do a multiselected dropdown list with checkboxes and post values in array to model how can I do it? I can't find it anywhere
All-Star
53021 Points
23601 Posts
Re: Multiselected dropdown list with checkboxes
Mar 18, 2020 01:38 PM|mgebhard|LINK
https://www.google.com/search?q=multiselect+dropdown+checkbox&rlz=1C1CHBF_enUS838US838&oq=multiselected+dropdown+with+checks&aqs=chrome.1.69i57j0l5.5790j0j7&sourceid=chrome&ie=UTF-8
Participant
1320 Points
491 Posts
Re: Multiselected dropdown list with checkboxes
Mar 19, 2020 08:59 AM|jiadongm|LINK
Hi Wiktor9696,
You can use bootstrap-multiselect to create a Multiselected dropdown list with checkboxes. Steps are as follow
Here is an example:
[HttpPost] public ActionResult GetData(string[] langOpt) { return View(); }
Result:
Best Regards,
Jiadong Meng
Member
2 Points
12 Posts
Re: Multiselected dropdown list with checkboxes
Mar 20, 2020 11:19 AM|Wiktor9696|LINK