[Solved] jQuery : Need extract the value as another array [closed]
First of all I think this [Medical: 39, Camera: 2, Surgical: 1] should not be an array but an object, so the syntax should be like this: {Medical: 39, Camera: 2, Surgical: 1} Or like this: [{Medical: 39}, {Camera: 2}, {Surgical: 1}]. Then to transform it try this: var obj={Medical: 39, Camera: 2, Surgical: 1}; … Read more