I want to to pass an array of int from Razor view to controller
I tried this it gave me one line "1","2" not two items
public List<int> SelectedIDs { get; set; }
@Html.HiddenFor(model => model.SelectedIDs, new { id = "hid" })
$('#document').submit(function () {
$("#hid").val($('#dropdownOne').val());
});