I’m sorry that the title might not be as descriptive as I want it to be
I have jquery plugin with a couple settings like:
I’ll try to simplify loop.
for (i=1; i< =3; i++)
console.log(settings.option + i);
The issue I have is grabbing the setting value while using the ‘i’ from the loop. Any ideas on how I can loop through the settings and get their values?
Try doing this:
console.log( settings["option" + i] );
Ah! perfect. Thank you. I was trying to figure out the syntax for it. Thanks a lot.
You must be logged in to reply to this topic.
*May or may not contain any actual "CSS" or "Tricks".