Adopting a project from a co-worker 🙁 I have the following markup and would like to populate a with data from an ajax call to return some data. How would I get the following array [925,927,928] so that I could iterate over it.
<div class="query-social" data-global-id="925"></div>
<div class="query-social" data-global-id="927"></div>
<div class="query-social" data-global-id="928"></div>
How would I be able to get a list of data-global-ids that satisfy the criteria .query-social? Most examples I found were one off.
thx
1 Answer