javascript - Get values from object array in jquery -
i having data in jquery how groupname2 values grouplist user1,user2 etc:
{"groupslist":{"groupname":["user1","user2","user3"],"groupname2":["user1","user2","user3"],"groupname3":["user1","user2","user3"]}}
i have declared grouplist={}
, push groupname values dynamically in console when print grouplist `
object {user00: array[3], super user: array[1], supreme user: array[0]} super user: array[1] 0: "sample_vh.com" length: 1 __proto__: array[0] supreme user: array[0] user00: array[3] 0: "veera_tls.com" 1: "v_v.com" 2: "sample_vh.com" length: 3 __proto__: array[0] __proto__: object`
var o = { "groupslist":{ "groupname":["user1","user2","user3"], "groupname2":["user1","user2","user3"], "groupname3":["user1","user2","user3"] } }; console.log(o.groupslist.groupname2);
Comments
Post a Comment