//We can get a comma-separated list of checkbox IDs: $(':checkbox').map(function() { return this.id; }).get().join(',');