How can I get all attributes (e.g. href) of all elements matching a jQuery selector?
href
Something like
var idArray = $(".someClass").map(function(){ return this.id }).get().join(',');
Working demo