Pass array to mvc Action via AJAX

Set the traditional property to true before making the get call.
i.e.:

jQuery.ajaxSettings.traditional = true

$.get('/controller/MyAction', { vals: arrayOfValues }, function (data) {... 

Leave a Comment