how to add to array after every click jquery code example Example: jquery map $( ":checkbox" ).map(function() { return this.id; });