I have this HTML structure and I’m using jQuery 1.9.x and want to basically iterate through a series of `
` tags and grab the value of a the HTML 5 data attribute (data-customerid) and build a comma delimited list of all the values. I can’t figure out how to format my message on here, but basically i have a UL with a named “id” and a series of li tags underneath with a href tags underneath each li. The href tags have a data attribute called “data-customerid”.
I should end up with a string like this in a variable `833,836,839`.