showing results for - "get all data attributes jquery from multiple elements"
Ange
04 Jan 2019
1var allAttributes = jQuery('.class').map(function() { /* example: .class */
2  return jQuery(this).data('id'); /* example: id */ 
3}).get();
4
5/* Returns all attributes witin an array like: ["1", "2", "3", "4"] */
6console.log(allAttributes);