title: How to dynamic call property on javascript object with jQuery
body: <p>Hallo all.
  I got a javascript object with some propeties let's say</p>
  
  <pre><code>function Animal() {
  this.id;
  this.name;
  </code></pre>
  
  <p>I need to call id function in a dynamic way to get and set its value: something like this</p>
  
  <pre><code>Animal animal = new Animal();
  var propertyName = "id";
  animal.+propertyName = "name";
  </code></pre>
  
  <p>Is there an elegant way to do it? With jQuery?</p>
  
  <p>Kind regards</p>
  
  <p>Massimo</p>