EDITED
I have a object
var data={"id" : 1, "second" : "abcd"};
These are values from a form. I am passing this to a function for verification.
If the property is same we can get values as data["id"]
and data["second"]
, but sometimes based on other values property can be changed.
How can i get values from data
independent of the propertied?
Thanks...
[]
and its return value will be used as the property name. – Crazy Train Jul 14 at 1:58