getobjs: function(objs, key, value) { var result = []; for (var i in objs) { var obj = $(objs[i]); if (obj.attr(key) == value) { result.push(obj[0]); } } return result; }
getobjs(obj,key,value)