jQuery – get a list of values of an attribute from elements – Stack Overflow

$”.object”.attr”level” will just return the attribute of first the first .object element.This will get you an array of all levels:
var list = $”.object”.mapfunction{return $this.attr”level”;}.get;

via selectors – jQuery – get a list of values of an attribute from elements of a class – Stack Overflow.

Leave a Reply