Answer the question
In order to leave comments, you need to log in
How to increase the id value of an element after each iteration that is dynamically created?
Tags are created dynamically. And how can I make the id value of the next created tag increase by 1 after each iteration?
tried like this:
var calk = 0;
//добавил в цыкл calk ++;
//добавил div.append('<img class="tableBanner" id="tableBanner + calk " src="">')
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question