Guest User

Untitled

a guest
Apr 15th, 2012
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. JavaScript Duplicate Empty Boxes Produced by a loop
  2. for(d = 0; d < lotteryNums.length; d++) {
  3. for(x = 0; x < quickDrawNums.length; x++) {
  4. if(lotteryNums[d] == quickDrawNums[x]) {
  5. quickDrawNums[x] = "<span class='winner'>" + quickDrawNums[x] + "</span>";
  6. winCounter++;
  7. } else {
  8. quickDrawNums[x] = "<span class='number'>" + quickDrawNums[x] + "</span>";
  9. }
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment