I've got multiple images with a common class. The user is able to hide or make them visible.
I need to pass two numbers for each visible image. The starting number should be 0 and should be a continues number. This is what I've done so far.
The current output is 0,1,1,2,2,3....
I want the output to be 0,1,2,3,4,5,....
$('#passNum').click(function(){
var curNumber= 0;
$('.visibeimage:visible').each(function(){
useNumber(curNumber++);
});
});
Note: the first number should be 0
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire