I created an array through getting data from button onclick, and then I want to get this data for future ajax using. At this stage, I only want it to show up in the console:
fixtureArray.push(fixture);
$(fixtureArray).each(function() {
triggerNumber = $(this).text();
console.log(triggerNumber);
});
I also have tried this
$.each(fixtureArray, function() {
triggerNumber = $(this).text();
console.log(triggerNumber);
});
But the console keep showing something like this:
Uncaught RangeError: Maximum call stack size exceeded
Sizzle.getText
Sizzle.getText
Sizzle.getText
Sizzle.getText
Sizzle.getText
Sizzle.getText
...
Any idea why this would happen? Thanks!
fixtureexactly? Give us an example. - epascarello