Update grid column from getCheckedRows

I am trying to update a grid column from checkbox which works fine for 1 item however does not work from a list of selected items.

Sample code:

function updateSuspend(){
selected_rows = gridadgroup.getCheckedRows(1).split(’,’);

Any help on this would be greatly appreciated.

selected_rows = gridadgroup.getCheckedRows(1).split(','); for (var i=0; i<selected_rows.length; i++) gridadgroup.cellById(selected_rows[i],4).setValue("SUSPEND");