jquery select multiple data attributes code example
Example: get all data attributes jquery from multiple elements
var allAttributes = jQuery('.class').map(function() { /* example: .class */
return jQuery(this).data('id'); /* example: id */
}).get();
/* Returns all attributes witin an array like: ["1", "2", "3", "4"] */
console.log(allAttributes);