Jun 18, 2019 01:38 PM|mgebhard|LINK
The error does not indicate an infinite loop. The error indicates the code is trying to access the style property of a null object.
Any idea why do I get this error and how to get rid of it?
I assume the a selector...
var add = document.getElementById("nAdd_" + index);
returns undefined. Try setting a breakpoint in the script and debugging the code. Also view the HTML using Dev tools (F12) and make sure the element Id exists in the markup.