You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that variables inside for loops are not being scoped correctly. The index per iteration is lost for either bind or onchange, but appears correctly when printed out as HTML. No matter what I do I always get the final index value (PlayerCount = 2 produces an i = 3 for both entries).
It seems that variables inside for loops are not being scoped correctly. The index per iteration is lost for either bind or onchange, but appears correctly when printed out as HTML. No matter what I do I always get the final index value (PlayerCount = 2 produces an i = 3 for both entries).
1. Using onchange method
Results
2. Binding array element
Am I missing something? Is there a better way?
The text was updated successfully, but these errors were encountered: