Not clear how the
selectedIDs
is being generated. I think the following
save(['<%= selectedIDs %>'])
should work if
selectedIDs = '1','2','3'
A quick work around, in the save function, use the
split()
function to split the
selectedIDs
into array object
String.prototype.split() | MDN[
^]