showing results for - "set attribute using each jquery"
Rodney
21 Oct 2019
1$( document ).ready(function() {
2
3    $.each($('div'), function (index, item) {
4        $(item).attr('data-testdata', index);
5    });
6
7});
8
similar questions
queries leading to this page
set attribute using each jquery