Using jQuery to get data attribute values with .each()

后端 未结 3 1343
甜味超标
甜味超标 2021-01-04 01:03

I have the following HTML with data attributes - I want to write some jQuery that will loop through the HTML and collect the data attributes and put them into an array - cou

3条回答
  •  执念已碎
    2021-01-04 01:47

    I understand you should use $(item), instead data only. Kindly find the code below:

    
    

提交回复
热议问题