can you use .map for jquery code example Example: jquery map $( ":checkbox" ).map(function() { return this.id; });