I collect data into a JS object:
var elements = {}; $(checked).each(function(i){ elements[i] = {}; elements[i].obj = obj; elements[i].el