var myArray = [];
$('#students_targeted option:selected,
#cc_students_targeted option:selected').each(function(){
myArray.push(data);
});
var myArray = []; $(‘#students_targeted option:selected, #cc_students_targeted option:selected’).each(function(){ myArray.push(data); });
Share
This means that you have reached maximum stack size (in other words you have reached maximum limit of elements in array).
UPD: You probably need to use this code: