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
you can use $.each of jquery to iterate the result.
$.each(yourModel,function(){//do with loop});
and for the error. you made mistake in declaration of loop variable
for (var i = 0; i < length; i++)