Mangesh barmate

Mangesh barmate

  • 2.1k
  • 118
  • 129.4k

How to assign javascript array to model array in mvc4?

Dec 3 2015 11:04 AM


I have a javascript array and i want to assign all its value to MVC Model array.

For ex.

var selectedValues = [];
$.each($('#ImageExtensionList option:selected'), function (index, value) {

here, @Model.OptionList = selectedValues i want to assign but not working.

Can anyone share on this?


Answers (1)