Advertisement
Dotunoyesanmi

Untitled

Oct 8th, 2017
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for(var i = 0; i < a.length; i++)
  2. {
  3.    for(var j = 0; j < b.length; j++)
  4.    {
  5.       if(a[j] === '1' && b[i].value === '')
  6.       {
  7.           console.log(b[i].value) //empty
  8.           console.log(b[2].value) //expected value
  9.       }
  10.    }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement