how to append map to html in js code example Example: jquery map $( ":checkbox" ).map(function() { return this.id; });