- JavaScript Duplicate Empty Boxes Produced by a loop
- for(d = 0; d < lotteryNums.length; d++) {
- for(x = 0; x < quickDrawNums.length; x++) {
- if(lotteryNums[d] == quickDrawNums[x]) {
- quickDrawNums[x] = "<span class='winner'>" + quickDrawNums[x] + "</span>";
- winCounter++;
- } else {
- quickDrawNums[x] = "<span class='number'>" + quickDrawNums[x] + "</span>";
- }
- }
- }