I am Using asp.net mvc 5. I want to pass array of string from view to controller without using Ajax. Can Anyone help?

This is the controller, value is to be gotten in packagelist[]

```
public ActionResult Create(Business business, string loc, string serv, string[] packagelist)
{
    try
    {               
        if (ModelState.IsValid)
        {
            var a = locationIds;
            business.ServiceId = db.Services.Where(x => x.Title ==serv).Select(x => x.Id).SingleOrDefault();
            business.LocationId = db.Locations.Where(x => (x.Title + " (" + x.State + "), " + x.PostalCode)==loc).Select(x => x.Id).SingleOrDefault();       
            db.Businesses.Add(business);
            db.SaveChanges();
            return RedirectToAction("Index");
        }
        else
        {
            foreach(var error in ModelState.Values)
            {
                foreach(var er in error.Errors)
                    ModelState.AddModelError("", er.Exception.ToString());
                }
            }
            ViewData["Packages"] = db.BusinessPackages.Select(x => new SelectListItem
            {
                Text = x.Package,
            });
            return View(business);
        }
    catch(Exception ex)
    {
        ModelState.AddModelError("", ex);
        return View(business);
    }
}

```

Have created an hidden input on view

```
<input type="hidden" name="packagelist" id="packagelist" value="" />

```

Then set the value of this hidden field via this function

```
$("#theform").submit(function (e) {                   
    e.preventDefault();                     
    var locdiv=$("#maindiv");
    var locations = locdiv.children();
    var loc = [];
    for (var i = 0; i < locations.length; i++)
    {                         
        loc.push(locations.eq(i).text());                          
    }
    // SaveLocations(loc);
    $("#packagelist").val(loc);
    $("#theform").submit();

```

Now main problem is that when I set value of the input via Jquery and submit it to the controller, controller is considering the array of values as single value.