javascript - Calling array names dynamically inside jQuery -


i'm pretty sure question going negative response many people have asked in so. trust me have read every single answer of every single question none helped.

i know in jquery can put array key name dynamically this: somearray1["abc" + variable] i'm not looking that. want call array name dynamically like:

var i=1; console.log( "somearray" + i["abc" + variable] ) 

can tell me how possible? cannot put in array , call i'm building dynamic script, must need call array name dynamically.

any highly appreciated.

normaly, array depend this.

this["somearray" + i]["abc" + variable] 

var bob1 = [1,2,3];  var name = "bob";  console.log(this[name+"1"][0])


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -