I'm not sure how to ask this question. I have a jQuery function, that is re-iterated depending upon how many returns are on a page.
Here is what I am trying to do. I would like to create a function that counts how many times the function loops and turn that number into a var.
count (the amount of times the code loops.
var amount = AMOUNT OF TIMES
Then I want to include that specific var "amount" in each iteration of the function that loops
So if the script loops 3 times the var amount = 3;
Then in the looping script each iteration will include that specific var amount = 3
I have no idea how to start writing that and help/questions will be greatly apriciated.