array and return a new array jquery code example Example: jquery map $( ":checkbox" ).map(function() { return this.id; });