I have tried to get an example but was noy successful so far. I have created various arrays and filled them in jquery. How to post all of them to the controller? On the controller side how to retrieve them and their values? I would appreciate if I can have an example or a link with much explanation since i`m completely new to using ajax post and mvc.
What if I have other arrays as well to post over to the controller?
function test()
{ var stringArray = new Array(); stringArray[0] = "item1"; stringArray[1] = "item2"; stringArray[2] = "item3"; var postData = { values: stringArray };
$.post("/Home/SaveList",
postData,
function(data){
alert(data.Result);
}, "json");
}