jQuery MultiSelect dropdownlist how to access results?

后端 未结 3 998
陌清茗
陌清茗 2021-01-07 01:06

How can I get the results from a JQUery Multi-select dropdownlist as called per an mvc3/razor?

http://abeautifulsite.net/blog/2008/04/jquery-multiselect/

3条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-07 01:47

    Please try this to get selected values

    public ActionResult Index(MyViewModel model, FormCollection collection)
        {
            string selectedValues=collection["SelectedValues[]"]; //here you get comma separated values
            return View(model);
        }
    

提交回复
热议问题