so I need to get to fetch the names of students in a list of student object that is in a view\'s model then send them to the server via $.post, the latter I have figured it out
for (var i = 0; i < length; i++)
instead of
for (int i = 0; i < length; i++)
should work.