Hello everybody. I got a javascript object with some hints let's say
function Animal() { this.id; this.name;
I need to call the id function dynamically in order to get and set its value: something like this
Animal animal = new Animal(); var propertyName = "id"; animal.+propertyName = "name";
Is there an elegant way to do this? With jQuery?
respectfully
Massimo
source share