Vote count:
0
I have 2 array like this
var windows_array = []
var google_array = []
I want in reach to specified array in function by passing network.
function add_friends(network, friend){
(network + '_array').push(friend);
}
function get_friends(network){
var d = $('.div_out');
for(var i=0; i< (network + '_array').Length; i++){
d.append('<div>' + (network + '_array')[i].name + '</div>')
}
}
My question here how i can do it in jQuery.
In PHP it is possible.
asked 31 secs ago
Aucun commentaire:
Enregistrer un commentaire