[Solved] Creating a JavaScript global array with static elements?
The problem isn’t that removeFunction doesn’t have access to bigArray. The problem is in your onclick attribute, and the id you’re putting on the link: $(‘#div’).append(“<a href=”#” id=’bigArray[i]’ onclick=’removeFunction(bigArray[i])’>Element bigArray[i]</a><br />”); In the onclick, you’re referring to i, but A) I’m guessing i isn’t a global, and B) Even if it is, it will not … Read more