Showing next input field when filled in using next()

I am attempting to

show

the next input field after the previous one has been filled in. My attempt is working. If the first input is filled in, then the second should appear and the first should still be viable and so on. Right now, the first input is appearing on page load (like I want it to), but after it is filled in it doesn't do anything.

I just logged the filter output length and intro length, filter output length will be always 1 and intro length is 3, so that why your condition is not satisfying and didnt come inside the loop, Can you check whether below satisfies your requirement