htmlasp.net-mvcforms

What HTML element should I use for when a user must select multiple items out of a large list in ASP.NET MVC?


I have a form for lawyers where they need to be able to select which states they are licensed in.

So, they need a clean way to be able to select a few states from all 50 states.

What I'm not sure is, how to handle this in HTML. Is there some possible way to have a drop down of checkboxes or something similar?

I'm using ASP.NET MVC. I'm also curious how the model binding will look on the return for something like this.

Thanks,

Simpatico


Solution

  • This jQuery plugin might help.
    Binding should work like for regular select with multiple selected items allowed.